home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-07-18 | 18.8 KB | [TEXT/R*ch] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Tue Jul 18 13:24:18 1995, modified Tue Jul 18 13:24:18 1995, creator BBEdit, type ASCII, 18191 bytes "Fixed Bug List_Notes" , at 0x478f 698 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
49%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
33%
| TrID
| raw Group 3 FAX bitmap
| default (weak)
| |
16%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [R*ch] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 14 46 69 78 65 64 20 | 42 75 67 20 4c 69 73 74 |..Fixed |Bug List|
|00000010| 5f 4e 6f 74 65 73 00 00 | 00 00 00 00 00 00 00 00 |_Notes..|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 52 2a 63 | 68 01 00 00 00 00 00 00 |.TEXTR*c|h.......|
|00000050| 00 00 00 00 00 47 0f 00 | 00 02 ba ac 31 9e c2 ac |.....G..|....1...|
|00000060| 31 9e c2 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |1.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 dc e1 00 00 |........|........|
|00000080| 4e 65 77 20 46 6c 6f 61 | 74 65 72 20 4e 6f 74 65 |New Floa|ter Note|
|00000090| 73 20 37 2f 39 35 3a 0d | 0d 54 68 65 72 65 20 69 |s 7/95:.|.There i|
|000000a0| 73 20 6e 6f 20 63 68 61 | 6e 67 65 20 74 6f 20 74 |s no cha|nge to t|
|000000b0| 68 65 20 41 50 49 2c 20 | 73 6f 20 69 74 20 73 68 |he API, |so it sh|
|000000c0| 6f 75 6c 64 20 6d 6f 73 | 74 6c 79 20 6a 75 73 74 |ould mos|tly just|
|000000d0| 20 62 65 20 61 20 64 72 | 6f 70 2d 69 6e 0d 72 65 | be a dr|op-in.re|
|000000e0| 70 6c 61 63 65 6d 65 6e | 74 2c 20 62 75 74 20 74 |placemen|t, but t|
|000000f0| 68 65 72 65 20 61 72 65 | 20 74 77 6f 20 70 6f 73 |here are| two pos|
|00000100| 73 69 62 6c 65 20 63 61 | 76 65 61 74 73 3a 0d 0d |sible ca|veats:..|
|00000110| 31 29 20 54 68 65 20 57 | 69 6e 64 6f 77 52 65 63 |1) The W|indowRec|
|00000120| 6f 72 64 45 78 74 65 6e | 73 69 6f 6e 73 20 73 74 |ordExten|sions st|
|00000130| 72 75 63 74 75 72 65 20 | 64 6f 65 73 6e 27 74 20 |ructure |doesn't |
|00000140| 65 78 69 73 74 20 61 6e | 79 20 6d 6f 72 65 2c 20 |exist an|y more, |
|00000150| 73 6f 20 69 66 20 61 6e | 79 20 6f 66 20 79 6f 75 |so if an|y of you|
|00000160| 72 0d 63 6f 64 65 20 64 | 65 70 65 6e 64 73 20 6f |r.code d|epends o|
|00000170| 6e 20 69 74 20 28 69 74 | 20 73 68 6f 75 6c 64 6e |n it (it| shouldn|
|00000180| 27 74 29 20 79 6f 75 27 | 6c 6c 20 68 61 76 65 20 |'t) you'|ll have |
|00000190| 74 6f 20 63 68 61 6e 67 | 65 20 69 74 2e 0d 0d 32 |to chang|e it...2|
|000001a0| 29 20 49 66 20 79 6f 75 | 72 20 61 70 70 6c 69 63 |) If you|r applic|
|000001b0| 61 74 69 6f 6e 20 75 73 | 65 73 20 74 68 65 20 77 |ation us|es the w|
|000001c0| 69 6e 64 6f 77 20 72 65 | 66 43 6f 6e 20 79 6f 75 |indow re|fCon you|
|000001d0| 27 6c 6c 20 68 61 76 65 | 20 74 6f 20 63 68 61 6e |'ll have| to chan|
|000001e0| 67 65 20 73 6f 6d 65 20 | 63 6f 64 65 3a 0d 41 6e |ge some |code:.An|
|000001f0| 79 20 77 69 6e 64 6f 77 | 73 20 63 72 65 61 74 65 |y window|s create|
|00000200| 64 20 77 69 74 68 20 4e | 65 77 52 65 66 65 72 65 |d with N|ewRefere|
|00000210| 6e 63 65 64 57 69 6e 64 | 6f 77 20 6f 72 20 47 65 |ncedWind|ow or Ge|
|00000220| 74 4e 65 77 52 65 66 65 | 72 65 6e 63 65 64 57 69 |tNewRefe|rencedWi|
|00000230| 6e 64 6f 77 20 6e 6f 77 | 20 75 73 65 0d 74 68 65 |ndow now| use.the|
|00000240| 20 77 69 6e 64 6f 77 20 | 72 65 66 43 6f 6e 20 74 | window |refCon t|
|00000250| 6f 20 73 74 6f 72 65 20 | 61 20 68 61 6e 64 6c 65 |o store |a handle|
|00000260| 20 74 6f 20 74 68 65 20 | 73 74 75 66 66 20 74 68 | to the |stuff th|
|00000270| 61 74 20 75 73 65 64 20 | 74 6f 20 62 65 20 69 6e |at used |to be in|
|00000280| 20 74 68 65 20 6f 6c 64 | 0d 57 69 6e 64 6f 77 52 | the old|.WindowR|
|00000290| 65 63 6f 72 64 45 78 74 | 65 6e 73 69 6f 6e 73 20 |ecordExt|ensions |
|000002a0| 73 74 72 75 63 74 75 72 | 65 2e 20 48 6f 77 65 76 |structur|e. Howev|
|000002b0| 65 72 2c 20 61 20 72 65 | 66 43 6f 6e 20 69 73 20 |er, a re|fCon is |
|000002c0| 73 74 69 6c 6c 20 70 72 | 6f 76 69 64 65 64 20 66 |still pr|ovided f|
|000002d0| 6f 72 20 79 6f 75 3a 0d | 79 6f 75 20 73 69 6d 70 |or you:.|you simp|
|000002e0| 6c 79 20 6e 65 65 64 20 | 74 6f 20 72 65 70 6c 61 |ly need |to repla|
|000002f0| 63 65 20 61 6e 79 20 63 | 61 6c 6c 73 20 74 6f 20 |ce any c|alls to |
|00000300| 74 68 65 20 74 6f 6f 6c | 62 6f 78 20 72 6f 75 74 |the tool|box rout|
|00000310| 69 6e 65 73 20 47 65 74 | 57 52 65 66 43 6f 6e 20 |ines Get|WRefCon |
|00000320| 61 6e 64 0d 53 65 74 57 | 52 65 66 43 6f 6e 20 69 |and.SetW|RefCon i|
|00000330| 6e 20 79 6f 75 72 20 63 | 6f 64 65 20 77 69 74 68 |n your c|ode with|
|00000340| 20 63 61 6c 6c 73 20 74 | 6f 20 47 65 74 45 78 74 | calls t|o GetExt|
|00000350| 57 52 65 66 43 6f 6e 20 | 61 6e 64 20 53 65 74 45 |WRefCon |and SetE|
|00000360| 78 74 57 52 65 66 43 6f | 6e 2c 20 77 68 69 63 68 |xtWRefCo|n, which|
|00000370| 20 61 72 65 0d 70 72 6f | 76 69 64 65 64 20 69 6e | are.pro|vided in|
|00000380| 20 57 69 6e 64 6f 77 45 | 78 74 65 6e 73 69 6f 6e | WindowE|xtension|
|00000390| 73 2e 63 2e 0d 0d 42 65 | 6c 6f 77 20 69 73 20 61 |s.c...Be|low is a|
|000003a0| 20 6c 69 73 74 20 6f 66 | 20 74 68 65 20 62 75 67 | list of| the bug|
|000003b0| 73 20 72 65 70 6f 72 74 | 65 64 20 61 6e 64 20 63 |s report|ed and c|
|000003c0| 6f 6d 6d 65 6e 74 73 20 | 61 62 6f 75 74 20 68 6f |omments |about ho|
|000003d0| 77 20 74 68 65 79 20 77 | 65 72 65 20 72 65 73 6f |w they w|ere reso|
|000003e0| 6c 76 65 64 2e 20 50 6c | 65 61 73 65 0d 73 65 6e |lved. Pl|ease.sen|
|000003f0| 64 20 61 6e 79 20 66 75 | 72 74 68 65 72 20 62 75 |d any fu|rther bu|
|00000400| 67 73 20 74 6f 20 6d 65 | 20 61 74 20 64 6b 6a 40 |gs to me| at dkj@|
|00000410| 61 70 70 6c 65 2e 63 6f | 6d 2e 20 4e 6f 20 70 72 |apple.co|m. No pr|
|00000420| 6f 6d 69 73 65 73 2c 20 | 62 75 74 20 61 73 20 6c |omises, |but as l|
|00000430| 6f 6e 67 20 61 73 20 74 | 69 6d 65 20 70 65 72 6d |ong as t|ime perm|
|00000440| 69 74 73 0d 49 27 6c 6c | 20 74 72 79 20 74 6f 20 |its.I'll| try to |
|00000450| 6d 61 69 6e 74 61 69 6e | 20 74 68 69 73 20 63 6f |maintain| this co|
|00000460| 64 65 2e 0d 0d 44 61 76 | 65 20 4a 6f 68 6e 73 6f |de...Dav|e Johnso|
|00000470| 6e 0d 20 0d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |n. .====|========|
|00000480| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000490| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000004a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000004b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 3e 20 47 65 74 |========|==.> Get|
|000004c0| 4e 65 77 52 65 66 65 72 | 65 6e 63 65 64 57 69 6e |NewRefer|encedWin|
|000004d0| 64 6f 77 28 29 20 75 73 | 65 73 20 74 68 65 20 57 |dow() us|es the W|
|000004e0| 44 45 46 20 72 65 73 6f | 75 72 63 65 20 49 44 20 |DEF reso|urce ID |
|000004f0| 74 6f 20 64 65 74 65 72 | 6d 69 6e 65 20 77 68 65 |to deter|mine whe|
|00000500| 74 68 65 72 20 6f 72 0d | 3e 20 6e 6f 74 20 61 20 |ther or.|> not a |
|00000510| 77 69 6e 64 6f 77 20 69 | 73 20 61 20 66 6c 6f 61 |window i|s a floa|
|00000520| 74 65 72 2e 20 49 74 20 | 67 65 74 73 20 74 68 65 |ter. It |gets the|
|00000530| 20 57 44 45 46 20 72 65 | 73 6f 75 72 63 65 20 49 | WDEF re|source I|
|00000540| 44 20 62 79 20 70 61 73 | 73 69 6e 67 20 74 68 65 |D by pas|sing the|
|00000550| 0d 3e 20 77 69 6e 64 6f | 77 44 65 66 50 72 6f 63 |.> windo|wDefProc|
|00000560| 20 68 61 6e 64 6c 65 20 | 74 6f 20 47 65 74 52 65 | handle |to GetRe|
|00000570| 73 49 6e 66 6f 28 29 2e | 20 55 6e 64 65 72 20 32 |sInfo().| Under 2|
|00000580| 34 2d 62 69 74 20 6d 6f | 64 65 2c 20 74 68 65 20 |4-bit mo|de, the |
|00000590| 57 69 6e 64 6f 77 20 4d | 61 6e 61 67 65 72 0d 3e |Window M|anager.>|
|000005a0| 20 75 73 65 73 20 74 68 | 65 20 68 69 67 68 20 62 | uses th|e high b|
|000005b0| 79 74 65 20 6f 66 20 74 | 68 65 20 77 69 6e 64 6f |yte of t|he windo|
|000005c0| 77 44 65 66 50 72 6f 63 | 20 68 61 6e 64 6c 65 20 |wDefProc| handle |
|000005d0| 74 6f 20 73 74 6f 72 65 | 20 74 68 65 20 57 44 45 |to store| the WDE|
|000005e0| 46 20 76 61 72 69 61 6e | 74 0d 3e 20 63 6f 64 65 |F varian|t.> code|
|000005f0| 2e 20 53 6f 20 69 66 20 | 61 20 6e 6f 6e 2d 7a 65 |. So if |a non-ze|
|00000600| 72 6f 20 76 61 72 69 61 | 6e 74 20 69 73 20 75 73 |ro varia|nt is us|
|00000610| 65 64 20 69 6e 20 32 34 | 2d 62 69 74 20 6d 6f 64 |ed in 24|-bit mod|
|00000620| 65 2c 20 74 68 65 20 52 | 65 73 6f 75 72 63 65 20 |e, the R|esource |
|00000630| 4d 61 6e 61 67 65 72 0d | 3e 20 67 65 74 73 20 61 |Manager.|> gets a|
|00000640| 6e 20 69 6e 76 61 6c 69 | 64 20 68 61 6e 64 6c 65 |n invali|d handle|
|00000650| 2c 20 72 65 74 75 72 6e | 73 20 2d 31 20 66 6f 72 |, return|s -1 for|
|00000660| 20 74 68 65 20 49 44 2c | 20 61 6e 64 20 74 68 65 | the ID,| and the|
|00000670| 20 77 69 6e 64 6f 77 20 | 69 73 20 74 72 65 61 74 | window |is treat|
|00000680| 65 64 20 61 73 0d 3e 20 | 61 20 6e 6f 6e 2d 66 6c |ed as.> |a non-fl|
|00000690| 6f 61 74 69 6e 67 20 77 | 69 6e 64 6f 77 2e 20 49 |oating w|indow. I|
|000006a0| 6e 20 61 64 64 69 74 69 | 6f 6e 20 74 6f 20 6b 65 |n additi|on to ke|
|000006b0| 65 70 69 6e 67 20 74 68 | 65 20 77 69 6e 64 6f 77 |eping th|e window|
|000006c0| 20 66 72 6f 6d 20 66 6c | 6f 61 74 69 6e 67 2c 0d | from fl|oating,.|
|000006d0| 3e 20 74 68 69 73 20 63 | 61 6e 20 6c 65 61 64 20 |> this c|an lead |
|000006e0| 74 6f 20 63 72 61 73 68 | 65 73 20 6f 72 20 6f 74 |to crash|es or ot|
|000006f0| 68 65 72 20 70 72 6f 62 | 6c 65 6d 73 20 69 6e 20 |her prob|lems in |
|00000700| 61 70 70 6c 69 63 61 74 | 69 6f 6e 73 20 74 68 61 |applicat|ions tha|
|00000710| 74 20 72 65 6c 79 20 6f | 6e 20 74 68 65 0d 3e 20 |t rely o|n the.> |
|00000720| 77 69 6e 64 6f 77 4b 69 | 6e 64 20 66 69 65 6c 64 |windowKi|nd field|
|00000730| 20 74 6f 20 64 69 73 74 | 69 6e 67 75 69 73 68 20 | to dist|inguish |
|00000740| 62 65 74 77 65 65 6e 20 | 66 6c 6f 61 74 65 72 73 |between |floaters|
|00000750| 20 61 6e 64 20 64 6f 63 | 75 6d 65 6e 74 20 77 69 | and doc|ument wi|
|00000760| 6e 64 6f 77 73 2e 0d 3e | 20 0d 3e 20 49 20 62 65 |ndows..>| .> I be|
|00000770| 6c 69 65 76 65 20 74 68 | 65 20 66 69 78 20 69 73 |lieve th|e fix is|
|00000780| 20 74 6f 20 63 61 6c 6c | 20 53 74 72 69 70 41 64 | to call| StripAd|
|00000790| 64 72 65 73 73 20 6f 6e | 20 74 68 65 20 77 69 6e |dress on| the win|
|000007a0| 64 6f 77 44 65 66 50 72 | 6f 63 20 68 61 6e 64 6c |dowDefPr|oc handl|
|000007b0| 65 20 69 6e 0d 3e 20 74 | 68 65 20 47 65 74 57 69 |e in.> t|he GetWi|
|000007c0| 6e 64 6f 77 44 65 66 50 | 72 6f 63 28 29 20 66 75 |ndowDefP|roc() fu|
|000007d0| 6e 63 74 69 6f 6e 20 61 | 73 20 62 65 6c 6f 77 2e |nction a|s below.|
|000007e0| 2e 2e 0d 3e 20 0d 3e 20 | 4d 69 63 68 61 65 6c 20 |...> .> |Michael |
|000007f0| 57 6f 6c 66 69 6e 62 61 | 72 67 65 72 0d 3e 20 4f |Wolfinba|rger.> O|
|00000800| 6b 6c 61 68 6f 6d 61 20 | 43 6c 69 6d 61 74 6f 6c |klahoma |Climatol|
|00000810| 6f 67 69 63 61 6c 20 53 | 75 72 76 65 79 0d 3e 20 |ogical S|urvey.> |
|00000820| 77 6f 6c 66 69 65 40 75 | 6f 6b 6e 6f 72 2e 65 64 |wolfie@u|oknor.ed|
|00000830| 75 0d 0d 46 69 78 65 64 | 3a 20 47 65 74 4e 65 77 |u..Fixed|: GetNew|
|00000840| 52 65 66 65 72 65 6e 63 | 65 64 57 69 6e 64 6f 77 |Referenc|edWindow|
|00000850| 20 6e 6f 77 20 75 73 65 | 73 20 61 20 64 69 66 66 | now use|s a diff|
|00000860| 65 72 65 6e 74 20 6d 65 | 74 68 6f 64 20 6f 66 20 |erent me|thod of |
|00000870| 64 65 74 65 72 6d 69 6e | 69 6e 67 20 77 68 65 74 |determin|ing whet|
|00000880| 68 65 72 0d 74 68 65 20 | 57 49 4e 44 20 73 70 65 |her.the |WIND spe|
|00000890| 63 69 66 69 65 73 20 61 | 20 66 6c 6f 61 74 65 72 |cifies a| floater|
|000008a0| 3a 20 69 74 20 6c 6f 6f | 6b 73 20 69 6e 73 69 64 |: it loo|ks insid|
|000008b0| 65 20 74 68 65 20 57 49 | 4e 44 20 69 74 73 65 6c |e the WI|ND itsel|
|000008c0| 66 20 66 6f 72 20 74 68 | 65 20 57 44 45 46 20 49 |f for th|e WDEF I|
|000008d0| 44 2e 0d 0d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |D...====|========|
|000008e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000008f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000900| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000910| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 3e 20 49 74 20 |========|==.> It |
|00000920| 73 65 65 6d 73 20 74 68 | 61 74 20 69 66 20 74 68 |seems th|at if th|
|00000930| 65 72 65 20 61 72 65 20 | 6f 70 65 6e 20 6e 6f 6e |ere are |open non|
|00000940| 2d 66 6c 6f 61 74 69 6e | 67 20 77 69 6e 64 6f 77 |-floatin|g window|
|00000950| 73 2c 20 61 6e 64 20 61 | 20 6e 65 77 20 77 69 6e |s, and a| new win|
|00000960| 64 6f 77 20 41 20 69 73 | 0d 3e 20 6f 70 65 6e 65 |dow A is|.> opene|
|00000970| 64 20 61 73 20 69 6e 76 | 69 73 69 62 6c 65 20 61 |d as inv|isible a|
|00000980| 6e 64 20 77 69 74 68 20 | 62 65 68 69 6e 64 20 3d |nd with |behind =|
|00000990| 20 2d 31 2c 20 61 6e 64 | 20 61 20 73 65 63 6f 6e | -1, and| a secon|
|000009a0| 64 20 77 69 6e 64 6f 77 | 20 42 20 69 73 20 74 68 |d window| B is th|
|000009b0| 65 6e 20 6f 70 65 6e 65 | 64 0d 3e 20 61 6c 73 6f |en opene|d.> also|
|000009c0| 20 61 73 20 69 6e 76 69 | 73 69 62 6c 65 20 77 69 | as invi|sible wi|
|000009d0| 74 68 20 62 65 68 69 6e | 64 20 3d 20 2d 31 2c 20 |th behin|d = -1, |
|000009e0| 61 6e 64 20 74 68 65 6e | 20 53 68 6f 77 52 65 66 |and then| ShowRef|
|000009f0| 65 72 65 6e 63 65 64 57 | 69 6e 64 6f 77 20 69 73 |erencedW|indow is|
|00000a00| 20 63 61 6c 6c 65 64 20 | 74 6f 0d 3e 20 6d 61 6b | called |to.> mak|
|00000a10| 65 20 77 69 6e 64 6f 77 | 20 42 20 76 69 73 69 62 |e window| B visib|
|00000a20| 6c 65 2c 20 69 74 20 6e | 65 76 65 72 20 72 65 63 |le, it n|ever rec|
|00000a30| 65 69 76 65 73 20 61 6e | 20 61 63 74 69 76 61 74 |eives an| activat|
|00000a40| 65 20 65 76 65 6e 74 2e | 0d 0d 49 20 63 6f 75 6c |e event.|..I coul|
|00000a50| 64 6e 27 74 20 72 65 70 | 72 6f 64 75 63 65 20 74 |dn't rep|roduce t|
|00000a60| 68 69 73 2c 20 62 75 74 | 20 49 20 64 69 64 6e 27 |his, but| I didn'|
|00000a70| 74 20 74 72 79 20 75 6e | 74 69 6c 20 41 46 54 45 |t try un|til AFTE|
|00000a80| 52 20 74 68 65 20 62 69 | 67 20 72 65 77 72 69 74 |R the bi|g rewrit|
|00000a90| 65 2c 20 73 6f 20 49 0d | 61 73 73 75 6d 65 20 69 |e, so I.|assume i|
|00000aa0| 74 20 77 61 73 20 66 69 | 78 65 64 20 61 6c 6f 6e |t was fi|xed alon|
|00000ab0| 67 20 74 68 65 20 77 61 | 79 2e 0d 0d 3d 3d 3d 3d |g the wa|y...====|
|00000ac0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000ad0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000ae0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000af0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000b00| 3d 3d 0d 3e 20 57 65 20 | 6e 6f 74 69 63 65 64 20 |==.> We |noticed |
|00000b10| 74 68 61 74 20 74 68 65 | 20 41 50 49 20 64 6f 65 |that the| API doe|
|00000b20| 73 20 6e 6f 74 20 61 6c | 6c 6f 77 20 6f 6e 65 20 |s not al|low one |
|00000b30| 74 6f 20 73 70 65 63 69 | 66 79 20 74 68 65 20 63 |to speci|fy the c|
|00000b40| 75 72 76 61 74 75 72 65 | 20 6f 66 20 61 20 72 6f |urvature| of a ro|
|00000b50| 75 6e 64 65 64 0d 3e 20 | 77 69 6e 64 6f 77 2c 20 |unded.> |window, |
|00000b60| 65 2e 67 2e 2c 20 72 44 | 6f 63 50 72 6f 63 2e 20 |e.g., rD|ocProc. |
|00000b70| 20 54 68 61 74 20 69 73 | 20 66 69 6e 65 2c 20 62 | That is| fine, b|
|00000b80| 75 74 20 77 65 20 6e 6f | 74 69 63 65 64 20 74 68 |ut we no|ticed th|
|00000b90| 61 74 20 74 68 65 20 72 | 6f 75 6e 64 65 64 20 77 |at the r|ounded w|
|00000ba0| 69 6e 64 6f 77 73 0d 3e | 20 74 68 61 74 20 77 65 |indows.>| that we|
|00000bb0| 72 65 20 70 72 6f 64 75 | 63 65 64 20 62 79 20 4e |re produ|ced by N|
|00000bc0| 65 77 52 65 66 65 72 65 | 6e 63 65 64 57 69 6e 64 |ewRefere|ncedWind|
|00000bd0| 6f 77 20 64 69 64 6e 27 | 74 20 6c 6f 6f 6b 20 61 |ow didn'|t look a|
|00000be0| 6c 6c 20 74 68 61 74 20 | 22 72 6f 75 6e 64 65 64 |ll that |"rounded|
|00000bf0| 22 20 61 73 20 77 65 0d | 3e 20 65 78 70 65 63 74 |" as we.|> expect|
|00000c00| 65 64 2e 20 20 41 20 6c | 69 74 74 6c 65 20 65 78 |ed. A l|ittle ex|
|00000c10| 70 6c 6f 72 61 74 69 6f | 6e 20 69 6e 74 6f 20 74 |ploratio|n into t|
|00000c20| 68 65 20 63 6f 64 65 20 | 72 65 76 65 61 6c 73 20 |he code |reveals |
|00000c30| 77 68 79 2e 20 20 54 68 | 65 20 63 6f 6e 73 74 61 |why. Th|e consta|
|00000c40| 6e 74 0d 3e 20 6e 6f 47 | 72 6f 77 44 6f 63 50 72 |nt.> noG|rowDocPr|
|00000c50| 6f 63 20 77 61 73 20 62 | 65 69 6e 67 20 65 72 72 |oc was b|eing err|
|00000c60| 6f 6e 65 6f 75 73 6c 79 | 20 61 64 64 65 64 20 74 |oneously| added t|
|00000c70| 6f 20 72 44 6f 63 50 72 | 6f 63 20 74 6f 20 70 72 |o rDocPr|oc to pr|
|00000c80| 6f 64 75 63 65 20 61 20 | 76 61 72 69 61 6e 74 20 |oduce a |variant |
|00000c90| 6f 66 0d 3e 20 72 44 6f | 63 50 72 6f 63 2b 34 2c |of.> rDo|cProc+4,|
|00000ca0| 20 77 68 65 72 65 61 73 | 20 74 68 65 20 22 73 74 | whereas| the "st|
|00000cb0| 61 6e 64 61 72 64 22 20 | 63 75 72 76 61 74 75 72 |andard" |curvatur|
|00000cc0| 65 20 6f 66 20 61 20 77 | 69 6e 64 6f 77 20 69 73 |e of a w|indow is|
|00000cd0| 20 72 44 6f 63 50 72 6f | 63 2b 30 20 6f 72 0d 3e | rDocPro|c+0 or.>|
|00000ce0| 20 72 44 6f 63 50 72 6f | 63 2b 35 2e 20 20 54 68 | rDocPro|c+5. Th|
|00000cf0| 65 20 6e 6f 47 72 6f 77 | 44 6f 63 50 72 6f 63 20 |e noGrow|DocProc |
|00000d00| 63 6f 6e 73 74 61 6e 74 | 20 64 6f 65 73 6e 27 74 |constant| doesn't|
|00000d10| 20 61 70 70 6c 79 20 74 | 6f 20 74 68 65 20 72 6f | apply t|o the ro|
|00000d20| 75 6e 64 65 64 20 77 69 | 6e 64 6f 77 20 74 79 70 |unded wi|ndow typ|
|00000d30| 65 2c 0d 3e 20 61 6e 64 | 20 69 74 20 73 65 65 6d |e,.> and| it seem|
|00000d40| 73 20 75 6e 6e 61 74 75 | 72 61 6c 20 74 6f 20 61 |s unnatu|ral to a|
|00000d50| 66 66 65 63 74 20 74 68 | 65 20 63 75 72 76 61 74 |ffect th|e curvat|
|00000d60| 75 72 65 20 6f 66 20 74 | 68 65 20 74 69 74 6c 65 |ure of t|he title|
|00000d70| 62 61 72 20 77 68 65 6e | 20 74 68 65 0d 3e 20 6b |bar when| the.> k|
|00000d80| 48 61 73 47 72 6f 77 42 | 6f 78 4d 61 73 6b 20 66 |HasGrowB|oxMask f|
|00000d90| 6c 61 67 20 69 73 20 63 | 68 61 6e 67 65 64 2e 0d |lag is c|hanged..|
|00000da0| 3e 20 20 0d 3e 20 54 68 | 65 20 63 68 61 6e 67 65 |> .> Th|e change|
|00000db0| 20 74 6f 20 74 68 65 20 | 63 6f 64 65 20 69 73 20 | to the |code is |
|00000dc0| 73 69 6d 70 6c 65 3b 20 | 66 72 6f 6d 0d 3e 20 0d |simple; |from.> .|
|00000dd0| 3e 20 69 66 20 28 21 28 | 61 74 74 72 69 62 75 74 |> if (!(|attribut|
|00000de0| 65 73 20 26 20 6b 48 61 | 73 47 72 6f 77 42 6f 78 |es & kHa|sGrowBox|
|00000df0| 4d 61 73 6b 29 29 0d 3e | 20 0d 3e 20 74 6f 0d 3e |Mask)).>| .> to.>|
|00000e00| 20 0d 3e 20 69 66 20 28 | 74 69 74 6c 65 42 61 72 | .> if (|titleBar|
|00000e10| 54 79 70 65 20 21 3d 20 | 6b 48 61 73 52 6f 75 6e |Type != |kHasRoun|
|00000e20| 64 65 64 54 69 74 6c 65 | 62 61 72 4d 61 73 6b 20 |dedTitle|barMask |
|00000e30| 26 26 20 21 28 61 74 74 | 72 69 62 75 74 65 73 20 |&& !(att|ributes |
|00000e40| 26 20 6b 48 61 73 47 72 | 6f 77 42 6f 78 4d 61 73 |& kHasGr|owBoxMas|
|00000e50| 6b 29 29 0d 3e 20 0d 3e | 20 64 6f 65 73 20 74 68 |k)).> .>| does th|
|00000e60| 65 20 74 72 69 63 6b 2c | 20 61 6e 64 20 6d 61 6b |e trick,| and mak|
|00000e70| 65 73 20 74 68 65 20 77 | 69 6e 64 6f 77 73 20 6c |es the w|indows l|
|00000e80| 6f 6f 6b 20 6e 69 63 65 | 20 61 6e 64 20 72 6f 75 |ook nice| and rou|
|00000e90| 6e 64 65 64 20 6c 69 6b | 65 20 77 65 27 64 20 65 |nded lik|e we'd e|
|00000ea0| 78 70 65 63 74 2e 0d 0d | 46 69 78 65 64 2e 20 41 |xpect...|Fixed. A|
|00000eb0| 6c 73 6f 20 6e 6f 74 65 | 20 74 68 61 74 20 74 68 |lso note| that th|
|00000ec0| 65 20 70 72 6f 63 65 73 | 73 20 6f 66 20 74 75 72 |e proces|s of tur|
|00000ed0| 6e 69 6e 67 20 77 69 6e | 64 6f 77 20 61 74 74 72 |ning win|dow attr|
|00000ee0| 69 62 75 74 65 73 20 28 | 64 65 66 69 6e 65 64 20 |ibutes (|defined |
|00000ef0| 69 6e 0d 57 69 6e 64 6f | 77 45 78 74 65 6e 73 69 |in.Windo|wExtensi|
|00000f00| 6f 6e 73 2e 68 29 20 69 | 6e 74 6f 20 70 72 6f 63 |ons.h) i|nto proc|
|00000f10| 49 44 73 20 61 6e 64 20 | 73 74 61 74 65 20 62 6f |IDs and |state bo|
|00000f20| 6f 6c 65 61 6e 73 20 77 | 61 73 20 62 72 6f 6b 65 |oleans w|as broke|
|00000f30| 6e 20 6f 75 74 20 69 6e | 74 6f 20 61 20 6e 65 77 |n out in|to a new|
|00000f40| 0d 72 6f 75 74 69 6e 65 | 2c 20 41 74 74 72 69 62 |.routine|, Attrib|
|00000f50| 75 74 65 73 54 6f 57 69 | 6e 64 6f 77 49 6e 66 6f |utesToWi|ndowInfo|
|00000f60| 2e 20 54 68 69 73 20 73 | 69 6d 70 6c 69 66 69 65 |. This s|implifie|
|00000f70| 64 20 4e 65 77 57 69 6e | 64 6f 77 52 65 66 65 72 |d NewWin|dowRefer|
|00000f80| 65 6e 63 65 20 61 20 6c | 6f 74 2e 0d 0d 3d 3d 3d |ence a l|ot...===|
|00000f90| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000fa0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000fb0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000fc0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000fd0| 3d 3d 3d 0d 3e 20 54 68 | 65 20 72 6f 75 74 69 6e |===.> Th|e routin|
|00000fe0| 65 20 48 69 64 65 52 65 | 66 65 72 65 6e 63 65 64 |e HideRe|ferenced|
|00000ff0| 57 69 6e 64 6f 77 20 64 | 6f 65 73 20 6e 6f 74 20 |Window d|oes not |
|00001000| 62 65 68 61 76 65 20 70 | 72 6f 70 65 72 6c 79 20 |behave p|roperly |
|00001010| 69 66 20 79 6f 75 20 61 | 74 74 65 6d 70 74 20 74 |if you a|ttempt t|
|00001020| 6f 20 68 69 64 65 0d 3e | 20 6d 6f 72 65 20 74 68 |o hide.>| more th|
|00001030| 61 6e 20 6f 6e 65 20 77 | 69 6e 64 6f 77 20 61 74 |an one w|indow at|
|00001040| 20 61 20 74 69 6d 65 2e | 20 20 54 68 65 20 72 65 | a time.| The re|
|00001050| 73 75 6c 74 20 6f 66 20 | 68 69 64 69 6e 67 20 74 |sult of |hiding t|
|00001060| 77 6f 20 77 69 6e 64 6f | 77 73 20 69 73 20 74 6f |wo windo|ws is to|
|00001070| 20 6c 65 61 76 65 20 74 | 68 65 0d 3e 20 77 69 6e | leave t|he.> win|
|00001080| 64 6f 77 69 6e 67 20 65 | 6e 76 69 72 6f 6e 6d 65 |dowing e|nvironme|
|00001090| 6e 74 20 69 6e 20 61 20 | 63 6f 6e 66 75 73 65 64 |nt in a |confused|
|000010a0| 20 73 74 61 74 65 3a 20 | 68 69 64 69 6e 67 20 74 | state: |hiding t|
|000010b0| 68 65 20 73 65 63 6f 6e | 64 20 77 69 6e 64 6f 77 |he secon|d window|
|000010c0| 20 63 61 6e 20 6d 61 6b | 65 20 74 68 65 0d 3e 20 | can mak|e the.> |
|000010d0| 63 6f 64 65 20 74 68 69 | 6e 6b 20 74 68 61 74 20 |code thi|nk that |
|000010e0| 74 68 65 20 66 69 72 73 | 74 20 68 69 64 64 65 6e |the firs|t hidden|
|000010f0| 20 77 69 6e 64 6f 77 20 | 69 73 20 74 68 65 20 66 | window |is the f|
|00001100| 72 6f 6e 74 6d 6f 73 74 | 20 6e 6f 6e 66 6c 6f 61 |rontmost| nonfloa|
|00001110| 74 65 72 2c 20 65 76 65 | 6e 20 69 66 0d 3e 20 74 |ter, eve|n if.> t|
|00001120| 68 65 72 65 20 61 72 65 | 20 76 69 73 69 62 6c 65 |here are| visible|
|00001130| 20 6e 6f 6e 66 6c 6f 61 | 74 65 72 73 2e ca ca 49 | nonfloa|ters...I|
|00001140| 66 20 79 6f 75 20 61 72 | 65 20 69 6e 74 65 72 65 |f you ar|e intere|
|00001150| 73 74 65 64 2c 20 77 65 | 20 77 69 6c 6c 20 62 65 |sted, we| will be|
|00001160| 20 68 61 70 70 79 20 74 | 6f 0d 3e 20 66 6f 72 77 | happy t|o.> forw|
|00001170| 61 72 64 20 61 20 72 65 | 76 69 73 65 64 20 76 65 |ard a re|vised ve|
|00001180| 72 73 69 6f 6e 20 6f 66 | 20 74 68 65 20 72 6f 75 |rsion of| the rou|
|00001190| 74 69 6e 65 20 74 6f 20 | 79 6f 75 2c 20 77 68 69 |tine to |you, whi|
|000011a0| 63 68 20 63 6f 72 72 65 | 63 74 73 20 74 68 69 73 |ch corre|cts this|
|000011b0| 20 70 72 6f 62 6c 65 6d | 2e 20 0d 3e 20 4f 75 72 | problem|. .> Our|
|000011c0| 20 63 6f 72 72 65 63 74 | 69 6f 6e 20 75 6e 66 6f | correct|ion unfo|
|000011d0| 72 74 75 6e 61 74 65 6c | 79 20 72 65 71 75 69 72 |rtunatel|y requir|
|000011e0| 65 73 20 6d 6f 72 65 20 | 74 68 61 6e 20 6a 75 73 |es more |than jus|
|000011f0| 74 20 61 20 6c 69 6e 65 | 20 6f 72 20 74 77 6f 20 |t a line| or two |
|00001200| 6f 66 20 63 6f 64 65 2e | 0d 20 0d 49 20 63 6f 75 |of code.|. .I cou|
|00001210| 6c 64 6e 27 74 20 72 65 | 70 72 6f 64 75 63 65 20 |ldn't re|produce |
|00001220| 74 68 69 73 2c 20 62 75 | 74 20 49 20 64 69 64 6e |this, bu|t I didn|
|00001230| 27 74 20 74 72 79 20 75 | 6e 74 69 6c 20 41 46 54 |'t try u|ntil AFT|
|00001240| 45 52 20 74 68 65 20 62 | 69 67 20 72 65 77 72 69 |ER the b|ig rewri|
|00001250| 74 65 2c 20 73 6f 20 49 | 0d 61 73 73 75 6d 65 20 |te, so I|.assume |
|00001260| 69 74 20 77 61 73 20 66 | 69 78 65 64 20 61 6c 6f |it was f|ixed alo|
|00001270| 6e 67 20 74 68 65 20 77 | 61 79 2e 0d 0d 3d 3d 3d |ng the w|ay...===|
|00001280| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001290| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000012a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000012b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000012c0| 3d 3d 3d 0d 3e 20 54 68 | 65 20 72 6f 75 74 69 6e |===.> Th|e routin|
|000012d0| 65 73 20 53 75 73 70 65 | 6e 64 46 6c 6f 61 74 69 |es Suspe|ndFloati|
|000012e0| 6e 67 57 69 6e 64 6f 77 | 73 20 61 6e 64 20 52 65 |ngWindow|s and Re|
|000012f0| 73 75 6d 65 46 6c 6f 61 | 74 69 6e 67 57 69 6e 64 |sumeFloa|tingWind|
|00001300| 6f 77 73 20 64 6f 20 6e | 6f 74 20 62 65 68 61 76 |ows do n|ot behav|
|00001310| 65 20 61 73 20 77 65 0d | 3e 20 77 6f 75 6c 64 20 |e as we.|> would |
|00001320| 65 78 70 65 63 74 2e 20 | 20 54 68 65 20 73 61 6d |expect. | The sam|
|00001330| 70 6c 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |ple appl|ication |
|00001340| 79 6f 75 20 70 72 6f 76 | 69 64 65 20 73 69 6d 70 |you prov|ide simp|
|00001350| 6c 79 20 63 61 6c 6c 73 | 0d 3e 20 53 75 73 70 65 |ly calls|.> Suspe|
|00001360| 6e 64 46 6c 6f 61 74 69 | 6e 67 57 69 6e 64 6f 77 |ndFloati|ngWindow|
|00001370| 73 20 77 68 65 6e 20 74 | 68 65 20 61 70 70 6c 69 |s when t|he appli|
|00001380| 63 61 74 69 6f 6e 20 72 | 65 63 65 69 76 65 73 20 |cation r|eceives |
|00001390| 61 20 73 75 73 70 65 6e | 64 20 65 76 65 6e 74 2e |a suspen|d event.|
|000013a0| 20 20 42 75 74 20 69 66 | 0d 3e 20 74 68 65 72 65 | But if|.> there|
|000013b0| 20 61 72 65 20 6e 6f 20 | 66 6c 6f 61 74 69 6e 67 | are no |floating|
|000013c0| 20 77 69 6e 64 6f 77 73 | 20 6f 70 65 6e 2c 20 66 | windows| open, f|
|000013d0| 69 72 73 74 20 76 69 73 | 69 62 6c 65 20 64 6f 63 |irst vis|ible doc|
|000013e0| 75 6d 65 6e 74 20 77 69 | 6e 64 6f 77 20 6e 65 76 |ument wi|ndow nev|
|000013f0| 65 72 20 72 65 63 65 69 | 76 65 73 0d 3e 20 61 20 |er recei|ves.> a |
|00001400| 64 65 61 63 74 69 76 61 | 74 65 20 65 76 65 6e 74 |deactiva|te event|
|00001410| 2e 20 20 49 66 20 74 68 | 65 72 65 20 61 72 65 20 |. If th|ere are |
|00001420| 66 6c 6f 61 74 69 6e 67 | 20 77 69 6e 64 6f 77 73 |floating| windows|
|00001430| 20 6f 70 65 6e 2c 20 74 | 68 65 20 77 69 6e 64 6f | open, t|he windo|
|00001440| 77 20 64 6f 65 73 20 72 | 65 63 65 69 76 65 0d 3e |w does r|eceive.>|
|00001450| 20 61 20 64 65 61 63 74 | 69 76 61 74 65 20 65 76 | a deact|ivate ev|
|00001460| 65 6e 74 2e 20 20 54 68 | 65 20 73 61 6d 65 20 69 |ent. Th|e same i|
|00001470| 73 20 74 72 75 65 20 66 | 6f 72 20 61 20 72 65 73 |s true f|or a res|
|00001480| 75 6d 65 20 65 76 65 6e | 74 2e 0d 3e 20 0d 3e 20 |ume even|t..> .> |
|00001490| 54 68 65 20 6f 62 76 69 | 6f 75 73 20 73 6f 6c 75 |The obvi|ous solu|
|000014a0| 74 69 6f 6e 20 69 73 20 | 66 6f 72 20 53 75 73 70 |tion is |for Susp|
|000014b0| 65 6e 64 46 6c 6f 61 74 | 69 6e 67 57 69 6e 64 6f |endFloat|ingWindo|
|000014c0| 77 73 20 6e 65 76 65 72 | 20 74 6f 20 64 65 61 63 |ws never| to deac|
|000014d0| 74 69 76 61 74 65 20 74 | 68 65 20 66 69 72 73 74 |tivate t|he first|
|000014e0| 0d 3e 20 76 69 73 69 62 | 6c 65 20 64 6f 63 75 6d |.> visib|le docum|
|000014f0| 65 6e 74 20 77 69 6e 64 | 6f 77 2c 20 6f 72 20 61 |ent wind|ow, or a|
|00001500| 6c 77 61 79 73 20 74 6f | 20 64 65 61 63 74 69 76 |lways to| deactiv|
|00001510| 61 74 65 20 74 68 65 20 | 66 69 72 73 74 20 76 69 |ate the |first vi|
|00001520| 73 69 62 6c 65 20 64 6f | 63 75 6d 65 6e 74 0d 3e |sible do|cument.>|
|00001530| 20 77 69 6e 64 6f 77 2c | 20 62 75 74 20 6e 6f 74 | window,| but not|
|00001540| 20 74 6f 20 64 65 61 63 | 74 69 76 61 74 65 20 69 | to deac|tivate i|
|00001550| 74 20 6f 6e 6c 79 20 73 | 6f 6d 65 74 69 6d 65 73 |t only s|ometimes|
|00001560| 2e 20 20 57 65 20 68 61 | 76 65 20 63 68 61 6e 67 |. We ha|ve chang|
|00001570| 65 64 20 74 68 65 20 63 | 6f 64 65 20 73 6f 0d 3e |ed the c|ode so.>|
|00001580| 20 74 68 61 74 20 53 75 | 73 70 65 6e 64 46 6c 6f | that Su|spendFlo|
|00001590| 61 74 69 6e 67 57 69 6e | 64 6f 77 73 20 61 6c 77 |atingWin|dows alw|
|000015a0| 61 79 73 20 64 65 61 63 | 74 69 76 61 74 65 73 20 |ays deac|tivates |
|000015b0| 74 68 65 20 66 69 72 73 | 74 20 76 69 73 69 62 6c |the firs|t visibl|
|000015c0| 65 20 64 6f 63 75 6d 65 | 6e 74 20 77 69 6e 64 6f |e docume|nt windo|
|000015d0| 77 2c 0d 3e 20 61 6e 64 | 20 73 6f 20 74 68 61 74 |w,.> and| so that|
|000015e0| 20 52 65 73 75 6d 65 46 | 6c 6f 61 74 69 6e 67 57 | ResumeF|loatingW|
|000015f0| 69 6e 64 6f 77 73 20 61 | 6c 77 61 79 73 20 61 63 |indows a|lways ac|
|00001600| 74 69 76 61 74 65 73 20 | 74 68 65 20 66 69 72 73 |tivates |the firs|
|00001610| 74 20 76 69 73 69 62 6c | 65 20 64 6f 63 75 6d 65 |t visibl|e docume|
|00001620| 6e 74 0d 3e 20 77 69 6e | 64 6f 77 2c 20 73 69 6e |nt.> win|dow, sin|
|00001630| 63 65 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 73 |ce there| is no s|
|00001640| 65 6e 73 65 20 69 6e 20 | 6d 61 6b 69 6e 67 20 74 |ense in |making t|
|00001650| 68 65 20 65 76 65 6e 74 | 20 68 61 6e 64 6c 65 72 |he event| handler|
|00001660| 20 64 6f 20 65 78 74 72 | 61 20 77 6f 72 6b 2e 20 | do extr|a work. |
|00001670| 20 54 68 65 0d 3e 20 6e | 65 63 65 73 73 61 72 79 | The.> n|ecessary|
|00001680| 20 63 68 61 6e 67 65 20 | 69 73 20 74 72 69 76 69 | change |is trivi|
|00001690| 61 6c 2e 0d 0d 46 69 78 | 65 64 2e 20 54 68 65 20 |al...Fix|ed. The |
|000016a0| 66 69 72 73 74 20 64 6f | 63 20 77 69 6e 64 6f 77 |first do|c window|
|000016b0| 20 69 73 20 61 6c 77 61 | 79 73 20 61 63 74 69 76 | is alwa|ys activ|
|000016c0| 61 74 65 64 20 6f 72 20 | 64 65 61 63 74 69 76 61 |ated or |deactiva|
|000016d0| 74 65 64 2e 20 49 66 20 | 74 68 65 20 66 69 72 73 |ted. If |the firs|
|000016e0| 74 0d 76 69 73 69 62 6c | 65 20 77 69 6e 64 6f 77 |t.visibl|e window|
|000016f0| 20 69 73 20 6d 6f 64 61 | 6c 2c 20 6e 6f 74 68 69 | is moda|l, nothi|
|00001700| 6e 67 20 69 73 20 64 6f | 6e 65 2c 20 70 72 65 73 |ng is do|ne, pres|
|00001710| 65 72 76 69 6e 67 20 74 | 68 65 20 73 74 61 74 65 |erving t|he state|
|00001720| 20 6f 66 20 74 68 65 20 | 66 6c 6f 61 74 65 72 73 | of the |floaters|
|00001730| 0d 61 6e 64 20 66 69 72 | 73 74 20 64 6f 63 20 77 |.and fir|st doc w|
|00001740| 69 6e 64 6f 77 2e 0d 0d | 3d 3d 3d 3d 3d 3d 3d 3d |indow...|========|
|00001750| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001760| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001770| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001780| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 0d 0d |========|======..|
|00001790| 3e 20 41 73 20 6c 6f 6e | 67 20 61 73 20 49 20 68 |> As lon|g as I h|
|000017a0| 61 76 65 20 79 6f 75 20 | 68 65 72 65 2c 20 49 20 |ave you |here, I |
|000017b0| 6d 69 67 68 74 20 61 6c | 73 6f 20 6d 61 6b 65 20 |might al|so make |
|000017c0| 61 20 73 75 67 67 65 73 | 74 69 6f 6e 2e 20 20 49 |a sugges|tion. I|
|000017d0| 20 77 61 73 20 73 75 72 | 70 72 69 73 65 64 20 74 | was sur|prised t|
|000017e0| 6f 0d 3e 20 73 65 65 20 | 74 68 65 20 63 61 6c 6c |o.> see |the call|
|000017f0| 20 74 6f 20 53 65 6c 65 | 63 74 57 69 6e 64 6f 77 | to Sele|ctWindow|
|00001800| 20 69 6e 20 74 68 65 20 | 53 65 6c 65 63 74 52 65 | in the |SelectRe|
|00001810| 66 65 72 65 6e 63 65 64 | 57 69 6e 64 6f 77 20 72 |ferenced|Window r|
|00001820| 6f 75 74 69 6e 65 3b 20 | 74 68 69 73 20 73 65 65 |outine; |this see|
|00001830| 6d 73 20 74 6f 0d 3e 20 | 62 65 20 74 68 65 20 6f |ms to.> |be the o|
|00001840| 6e 6c 79 20 70 6c 61 63 | 65 20 77 68 65 72 65 20 |nly plac|e where |
|00001850| 74 68 65 20 6d 61 69 6e | 20 65 76 65 6e 74 20 6c |the main| event l|
|00001860| 6f 6f 70 20 69 73 20 72 | 65 6c 69 65 64 20 75 70 |oop is r|elied up|
|00001870| 6f 6e 20 74 6f 20 61 63 | 74 69 76 61 74 65 20 61 |on to ac|tivate a|
|00001880| 20 77 69 6e 64 6f 77 2e | 20 0d 3e 20 4e 6f 74 65 | window.| .> Note|
|00001890| 20 74 68 61 74 20 74 68 | 65 20 72 65 73 75 6c 74 | that th|e result|
|000018a0| 20 6f 66 20 74 68 69 73 | 20 69 73 20 74 68 61 74 | of this| is that|
|000018b0| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|000018c0| 20 77 69 6c 6c 20 62 65 | 68 61 76 65 20 64 69 66 | will be|have dif|
|000018d0| 66 65 72 65 6e 74 6c 79 | 0d 3e 20 64 65 70 65 6e |ferently|.> depen|
|000018e0| 64 69 6e 67 20 6f 6e 20 | 77 68 65 74 68 65 72 20 |ding on |whether |
|000018f0| 6f 72 20 6e 6f 74 20 66 | 6c 6f 61 74 69 6e 67 20 |or not f|loating |
|00001900| 77 69 6e 64 6f 77 73 20 | 61 72 65 20 6f 70 65 6e |windows |are open|
|00001910| 3a 20 69 66 20 66 6c 6f | 61 74 69 6e 67 20 77 69 |: if flo|ating wi|
|00001920| 6e 64 6f 77 73 20 61 72 | 65 0d 3e 20 6f 70 65 6e |ndows ar|e.> open|
|00001930| 2c 20 74 68 65 20 77 69 | 6e 64 6f 77 20 77 69 6c |, the wi|ndow wil|
|00001940| 6c 20 62 65 20 61 63 74 | 69 76 61 74 65 64 20 69 |l be act|ivated i|
|00001950| 6d 6d 65 64 69 61 74 65 | 6c 79 3b 20 69 66 20 6e |mmediate|ly; if n|
|00001960| 6f 20 66 6c 6f 61 74 69 | 6e 67 20 77 69 6e 64 6f |o floati|ng windo|
|00001970| 77 73 20 61 72 65 20 6f | 70 65 6e 2c 0d 3e 20 74 |ws are o|pen,.> t|
|00001980| 68 65 20 77 69 6e 64 6f | 77 20 77 69 6c 6c 20 6e |he windo|w will n|
|00001990| 6f 74 20 62 65 20 61 63 | 74 69 76 61 74 65 64 20 |ot be ac|tivated |
|000019a0| 75 6e 74 69 6c 20 77 65 | 20 72 65 74 75 72 6e 20 |until we| return |
|000019b0| 74 6f 20 74 68 65 20 6d | 61 69 6e 20 65 76 65 6e |to the m|ain even|
|000019c0| 74 20 6c 6f 6f 70 2e 20 | 20 49 6e 20 6f 75 72 0d |t loop. | In our.|
|000019d0| 3e 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2c 20 74 |> applic|ation, t|
|000019e0| 68 69 73 20 77 61 73 20 | 75 6e 64 65 73 69 72 61 |his was |undesira|
|000019f0| 62 6c 65 2c 20 73 6f 20 | 77 65 20 63 68 61 6e 67 |ble, so |we chang|
|00001a00| 65 64 20 74 68 65 20 63 | 6f 64 65 20 74 6f 3a 0d |ed the c|ode to:.|
|00001a10| 3e 20 0d 3e 20 69 66 20 | 28 6c 61 73 74 46 6c 6f |> .> if |(lastFlo|
|00001a20| 61 74 69 6e 67 57 69 6e | 64 6f 77 20 3d 3d 20 6e |atingWin|dow == n|
|00001a30| 69 6c 29 0d 3e 20 7b 0d | 3e 20 09 44 65 61 63 74 |il).> {.|> .Deact|
|00001a40| 69 76 61 74 65 57 69 6e | 64 6f 77 28 63 75 72 72 |ivateWin|dow(curr|
|00001a50| 65 6e 74 46 72 6f 6e 74 | 57 69 6e 64 6f 77 29 3b |entFront|Window);|
|00001a60| 0d 3e 20 09 42 72 69 6e | 67 54 6f 46 72 6f 6e 74 |.> .Brin|gToFront|
|00001a70| 28 28 57 69 6e 64 6f 77 | 50 74 72 29 20 77 69 6e |((Window|Ptr) win|
|00001a80| 64 6f 77 54 6f 53 65 6c | 65 63 74 29 3b 0d 3e 20 |dowToSel|ect);.> |
|00001a90| 09 48 69 6c 69 74 65 57 | 69 6e 64 6f 77 28 28 57 |.HiliteW|indow((W|
|00001aa0| 69 6e 64 6f 77 50 74 72 | 29 77 69 6e 64 6f 77 54 |indowPtr|)windowT|
|00001ab0| 6f 53 65 6c 65 63 74 2c | 20 6b 41 63 74 69 76 61 |oSelect,| kActiva|
|00001ac0| 74 65 57 69 6e 64 6f 77 | 29 3b 0d 3e 20 09 41 63 |teWindow|);.> .Ac|
|00001ad0| 74 69 76 61 74 65 57 69 | 6e 64 6f 77 28 77 69 6e |tivateWi|ndow(win|
|00001ae0| 64 6f 77 54 6f 53 65 6c | 65 63 74 29 3b 0d 3e 20 |dowToSel|ect);.> |
|00001af0| 7d 20 65 6c 73 65 20 7b | 0d 0d 46 69 78 65 64 2e |} else {|..Fixed.|
|00001b00| 0d 0d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |..======|========|
|00001b10| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001b20| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001b30| 0d 3e 20 57 68 65 6e 20 | 63 6f 6d 70 69 6c 69 6e |.> When |compilin|
|00001b40| 67 20 77 69 74 68 20 74 | 68 65 20 2d 64 20 53 54 |g with t|he -d ST|
|00001b50| 52 49 43 54 5f 57 49 4e | 44 4f 57 53 20 63 6f 6d |RICT_WIN|DOWS com|
|00001b60| 70 69 6c 65 72 20 66 6c | 61 67 2c 20 74 68 65 20 |piler fl|ag, the |
|00001b70| 57 69 6e 64 6f 77 52 65 | 63 6f 72 64 0d 3e 20 73 |WindowRe|cord.> s|
|00001b80| 74 72 75 63 74 75 72 65 | 20 69 73 20 6e 6f 20 6c |tructure| is no l|
|00001b90| 6f 6e 67 65 72 20 64 65 | 66 69 6e 65 64 2e 20 41 |onger de|fined. A|
|00001ba0| 73 20 49 20 75 6e 64 65 | 72 73 74 61 6e 64 20 74 |s I unde|rstand t|
|00001bb0| 68 69 6e 67 73 2c 20 74 | 68 69 73 20 69 73 20 74 |hings, t|his is t|
|00001bc0| 6f 20 6d 6f 76 65 20 74 | 6f 77 61 72 64 20 61 0d |o move t|oward a.|
|00001bd0| 3e 20 66 75 6c 6c 79 20 | 70 72 65 65 6d 70 74 69 |> fully |preempti|
|00001be0| 76 65 20 54 6f 6f 6c 62 | 6f 78 20 62 79 20 6d 61 |ve Toolb|ox by ma|
|00001bf0| 6b 69 6e 67 20 6f 70 61 | 71 75 65 20 74 6f 6f 6c |king opa|que tool|
|00001c00| 62 6f 78 20 69 6e 74 65 | 72 66 61 63 65 20 6f 62 |box inte|rface ob|
|00001c10| 6a 65 63 74 73 2e 0d 3e | 20 0d 3e 20 41 73 20 79 |jects..>| .> As y|
|00001c20| 6f 75 20 6b 6e 6f 77 2c | 20 77 68 65 6e 20 43 6f |ou know,| when Co|
|00001c30| 70 6c 61 6e 64 20 61 72 | 72 69 76 65 73 20 69 74 |pland ar|rives it|
|00001c40| 20 6d 61 79 20 6e 6f 20 | 6c 6f 6e 67 65 72 20 62 | may no |longer b|
|00001c50| 65 20 74 72 75 65 20 74 | 68 61 74 20 57 69 6e 64 |e true t|hat Wind|
|00001c60| 6f 77 52 65 66 20 3d 3d | 0d 3e 20 57 69 6e 64 6f |owRef ==|.> Windo|
|00001c70| 77 50 74 72 2e 20 49 6e | 20 66 61 63 74 2c 20 61 |wPtr. In| fact, a|
|00001c80| 20 57 69 6e 64 6f 77 52 | 65 66 2c 20 69 66 20 75 | WindowR|ef, if u|
|00001c90| 73 65 64 20 61 73 20 61 | 20 70 6f 69 6e 74 65 72 |sed as a| pointer|
|00001ca0| 2c 20 77 69 6c 6c 20 70 | 72 6f 62 61 62 6c 79 20 |, will p|robably |
|00001cb0| 70 6f 69 6e 74 20 74 6f | 0d 3e 20 73 6f 6d 65 77 |point to|.> somew|
|00001cc0| 68 65 72 65 20 61 72 6f | 75 6e 64 20 4e 65 70 74 |here aro|und Nept|
|00001cd0| 75 6e 65 2e 0d 3e 20 0d | 3e 20 49 66 20 74 68 69 |une..> .|> If thi|
|00001ce0| 73 20 69 73 20 74 68 65 | 20 63 61 73 65 2c 20 74 |s is the| case, t|
|00001cf0| 68 65 6e 20 69 74 20 69 | 73 20 6e 6f 74 20 61 20 |hen it i|s not a |
|00001d00| 67 6f 6f 64 20 74 68 69 | 6e 67 20 74 6f 20 65 6e |good thi|ng to en|
|00001d10| 63 61 70 73 75 6c 61 74 | 65 20 61 20 57 69 6e 64 |capsulat|e a Wind|
|00001d20| 6f 77 52 65 63 6f 72 64 | 0d 3e 20 69 6e 73 69 64 |owRecord|.> insid|
|00001d30| 65 20 79 6f 75 72 20 57 | 69 6e 64 6f 77 52 65 63 |e your W|indowRec|
|00001d40| 6f 72 64 45 78 74 65 6e | 73 69 6f 6e 73 20 73 74 |ordExten|sions st|
|00001d50| 72 75 63 74 75 72 65 2c | 20 61 6e 64 20 69 74 20 |ructure,| and it |
|00001d60| 69 73 20 63 65 72 74 61 | 69 6e 6c 79 20 62 61 64 |is certa|inly bad|
|00001d70| 20 74 6f 20 74 79 70 65 | 63 61 73 74 0d 3e 20 61 | to type|cast.> a|
|00001d80| 20 57 69 6e 64 6f 77 52 | 65 66 20 28 6c 69 6b 65 | WindowR|ef (like|
|00001d90| 20 79 6f 75 20 6d 69 67 | 68 74 20 67 65 74 20 62 | you mig|ht get b|
|00001da0| 61 63 6b 20 66 72 6f 6d | 20 74 68 65 20 46 72 6f |ack from| the Fro|
|00001db0| 6e 74 57 69 6e 64 6f 77 | 20 63 61 6c 6c 29 20 74 |ntWindow| call) t|
|00001dc0| 6f 20 61 0d 3e 20 57 69 | 6e 64 6f 77 52 65 63 6f |o a.> Wi|ndowReco|
|00001dd0| 72 64 45 78 74 65 6e 73 | 69 6f 6e 73 20 72 65 63 |rdExtens|ions rec|
|00001de0| 6f 72 64 2e 0d 3e 20 0d | 3e 20 49 20 68 61 64 20 |ord..> .|> I had |
|00001df0| 74 68 69 73 20 73 61 6d | 65 20 70 72 6f 62 6c 65 |this sam|e proble|
|00001e00| 6d 20 6c 61 73 74 20 79 | 65 61 72 2c 20 77 68 65 |m last y|ear, whe|
|00001e10| 6e 20 49 20 66 69 72 73 | 74 20 68 65 61 72 64 20 |n I firs|t heard |
|00001e20| 74 68 61 74 20 6f 75 72 | 20 6f 6c 64 20 66 72 69 |that our| old fri|
|00001e30| 65 6e 64 20 74 68 65 0d | 3e 20 57 69 6e 64 6f 77 |end the.|> Window|
|00001e40| 50 74 72 20 77 61 73 20 | 67 6f 69 6e 67 20 61 77 |Ptr was |going aw|
|00001e50| 61 79 2e 20 53 6f 20 49 | 20 64 65 63 69 64 65 64 |ay. So I| decided|
|00001e60| 20 74 6f 20 63 72 65 61 | 74 65 20 6d 79 20 6f 77 | to crea|te my ow|
|00001e70| 6e 20 77 69 6e 64 6f 77 | 20 6f 62 6a 65 63 74 73 |n window| objects|
|00001e80| 20 61 6e 64 20 73 74 6f | 72 65 0d 3e 20 74 68 65 | and sto|re.> the|
|00001e90| 6d 20 69 6e 20 61 20 67 | 6c 6f 62 61 6c 20 74 61 |m in a g|lobal ta|
|00001ea0| 62 6c 65 2e 20 54 68 61 | 74 20 77 61 79 20 49 20 |ble. Tha|t way I |
|00001eb0| 63 6f 75 6c 64 20 73 74 | 69 6c 6c 20 61 63 63 65 |could st|ill acce|
|00001ec0| 73 73 20 6d 79 20 77 69 | 6e 64 6f 77 20 64 61 74 |ss my wi|ndow dat|
|00001ed0| 61 20 61 6e 64 20 6b 65 | 65 70 20 6d 79 0d 3e 20 |a and ke|ep my.> |
|00001ee0| 63 6f 64 65 20 72 65 6d | 6f 76 65 64 20 66 72 6f |code rem|oved fro|
|00001ef0| 6d 20 61 6e 79 20 74 6f | 6f 6c 62 6f 78 20 64 65 |m any to|olbox de|
|00001f00| 70 65 6e 64 65 6e 63 69 | 65 73 2e 0d 0d 46 69 78 |pendenci|es...Fix|
|00001f10| 65 64 2e 20 41 66 74 65 | 72 20 6c 6f 6e 67 20 61 |ed. Afte|r long a|
|00001f20| 6e 64 20 61 72 64 75 6f | 75 73 20 64 65 62 61 74 |nd arduo|us debat|
|00001f30| 65 2c 20 49 20 64 65 63 | 69 64 65 64 20 74 6f 20 |e, I dec|ided to |
|00001f40| 75 73 65 20 74 68 65 20 | 72 65 66 43 6f 6e 20 6f |use the |refCon o|
|00001f50| 66 20 74 68 65 20 77 69 | 6e 64 6f 77 2c 0d 72 61 |f the wi|ndow,.ra|
|00001f60| 74 68 65 72 20 74 68 61 | 6e 20 62 75 69 6c 64 20 |ther tha|n build |
|00001f70| 61 6e 64 20 6d 61 6e 61 | 67 65 20 6d 79 20 6f 77 |and mana|ge my ow|
|00001f80| 6e 20 6c 69 73 74 2e 20 | 49 74 20 77 61 73 20 6c |n list. |It was l|
|00001f90| 65 73 73 20 77 6f 72 6b | 2c 20 61 6e 64 20 73 65 |ess work|, and se|
|00001fa0| 65 6d 65 64 20 6c 69 6b | 65 20 69 74 0d 77 6f 75 |emed lik|e it.wou|
|00001fb0| 6c 64 20 68 61 76 65 20 | 74 68 65 20 6c 65 61 73 |ld have |the leas|
|00001fc0| 74 20 69 6d 70 61 63 74 | 20 6f 6e 20 74 68 65 20 |t impact| on the |
|00001fd0| 65 78 69 73 74 69 6e 67 | 20 41 50 49 2e 20 49 20 |existing| API. I |
|00001fe0| 64 69 64 2c 20 68 6f 77 | 65 76 65 72 2c 20 70 72 |did, how|ever, pr|
|00001ff0| 6f 76 69 64 65 20 61 0d | 72 65 70 6c 61 63 65 6d |ovide a.|replacem|
|00002000| 65 6e 74 20 72 65 66 43 | 6f 6e 20 74 68 61 74 20 |ent refC|on that |
|00002010| 61 6e 79 6f 6e 65 20 63 | 61 6e 20 75 73 65 2e 20 |anyone c|an use. |
|00002020| 55 73 65 72 73 20 73 69 | 6d 70 6c 79 20 6e 65 65 |Users si|mply nee|
|00002030| 64 20 74 6f 20 63 68 61 | 6e 67 65 20 61 6c 6c 20 |d to cha|nge all |
|00002040| 65 78 69 73 74 69 6e 67 | 0d 47 65 74 2f 53 65 74 |existing|.Get/Set|
|00002050| 57 52 65 66 43 6f 6e 20 | 63 61 6c 6c 73 20 74 6f |WRefCon |calls to|
|00002060| 20 47 65 74 2f 53 65 74 | 45 78 74 57 52 65 66 43 | Get/Set|ExtWRefC|
|00002070| 6f 6e 3a 20 74 68 65 73 | 65 20 61 72 65 20 61 63 |on: thes|e are ac|
|00002080| 63 65 73 73 6f 72 20 72 | 6f 75 74 69 6e 65 73 20 |cessor r|outines |
|00002090| 74 68 61 74 20 49 0d 77 | 72 6f 74 65 20 74 6f 20 |that I.w|rote to |
|000020a0| 75 73 65 20 74 68 65 20 | 6e 65 77 20 72 65 66 43 |use the |new refC|
|000020b0| 6f 6e 2e 20 50 72 65 74 | 74 79 20 6c 69 67 68 74 |on. Pret|ty light|
|000020c0| 77 65 69 67 68 74 20 74 | 68 61 74 20 77 61 79 2e |weight t|hat way.|
|000020d0| 2e 2e 0d 0d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |....====|========|
|000020e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000020f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002100| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002110| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 3e 20 49 20 6c |========|==.> I l|
|00002120| 6f 6f 6b 65 64 20 6f 76 | 65 72 20 74 68 65 20 6c |ooked ov|er the l|
|00002130| 61 74 65 73 74 20 22 64 | 65 76 65 6c 6f 70 20 31 |atest "d|evelop 1|
|00002140| 38 22 20 63 6f 64 65 20 | 74 68 61 74 20 54 72 6f |8" code |that Tro|
|00002150| 79 20 73 65 6e 74 20 6d | 65 20 61 6e 64 20 6e 6f |y sent m|e and no|
|00002160| 74 69 63 65 64 20 74 68 | 61 74 20 74 68 65 0d 3e |ticed th|at the.>|
|00002170| 20 6e 65 77 20 72 6f 75 | 74 69 6e 65 20 56 61 6c | new rou|tine Val|
|00002180| 69 64 61 74 65 57 69 6e | 64 6f 77 4c 69 73 74 28 |idateWin|dowList(|
|00002190| 29 20 64 6f 65 73 6e 27 | 74 20 6d 61 6b 65 20 75 |) doesn'|t make u|
|000021a0| 73 65 20 6f 66 20 74 68 | 65 20 57 69 6e 64 6f 77 |se of th|e Window|
|000021b0| 49 73 4d 6f 64 61 6c 20 | 66 75 6e 63 74 69 6f 6e |IsModal |function|
|000021c0| 2e 20 0d 3e 20 49 20 73 | 75 70 70 6f 73 65 20 69 |. .> I s|uppose i|
|000021d0| 74 20 77 6f 75 6c 64 20 | 72 65 71 75 69 72 65 20 |t would |require |
|000021e0| 61 6e 20 6f 64 64 20 73 | 65 74 20 6f 66 20 63 69 |an odd s|et of ci|
|000021f0| 72 63 75 6d 73 74 61 6e | 63 65 73 20 66 6f 72 20 |rcumstan|ces for |
|00002200| 56 61 6c 69 64 61 74 65 | 57 69 6e 64 6f 77 4c 69 |Validate|WindowLi|
|00002210| 73 74 20 74 6f 0d 3e 20 | 62 65 20 63 61 6c 6c 65 |st to.> |be calle|
|00002220| 64 20 77 68 69 6c 65 20 | 61 20 6d 6f 64 61 6c 20 |d while |a modal |
|00002230| 77 69 6e 64 6f 77 20 77 | 61 73 20 69 6e 20 65 78 |window w|as in ex|
|00002240| 69 73 74 65 6e 63 65 2c | 20 62 75 74 20 49 20 62 |istence,| but I b|
|00002250| 65 74 20 69 74 20 77 69 | 6c 6c 20 68 61 70 70 65 |et it wi|ll happe|
|00002260| 6e 20 74 6f 0d 3e 20 73 | 6f 6d 65 6f 6e 65 20 73 |n to.> s|omeone s|
|00002270| 6f 6d 65 74 69 6d 65 2e | 0d 0d 46 69 78 65 64 2c |ometime.|..Fixed,|
|00002280| 20 56 61 6c 69 64 61 74 | 65 57 69 6e 64 6f 77 4c | Validat|eWindowL|
|00002290| 69 73 74 20 6a 75 73 74 | 20 72 65 74 75 72 6e 73 |ist just| returns|
|000022a0| 20 69 66 20 74 68 65 20 | 66 72 6f 6e 74 20 77 69 | if the |front wi|
|000022b0| 6e 64 6f 77 20 69 73 20 | 6d 6f 64 61 6c 2e 0d 3d |ndow is |modal..=|
|000022c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000022d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000022e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000022f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002300| 3d 3d 3d 3d 3d 0d 3e 20 | 41 6e 6f 74 68 65 72 20 |=====.> |Another |
|00002310| 74 68 69 6e 67 20 74 68 | 61 74 20 77 6f 75 6c 64 |thing th|at would|
|00002320| 20 62 65 20 6e 69 63 65 | 20 69 73 20 69 66 20 44 | be nice| is if D|
|00002330| 65 61 63 74 69 76 61 74 | 65 46 6c 6f 61 74 65 72 |eactivat|eFloater|
|00002340| 73 41 6e 64 46 69 72 73 | 74 44 6f 63 75 6d 65 6e |sAndFirs|tDocumen|
|00002350| 74 57 69 6e 64 6f 77 28 | 29 0d 3e 20 61 6e 64 20 |tWindow(|).> and |
|00002360| 41 63 74 69 76 61 74 65 | 46 6c 6f 61 74 65 72 73 |Activate|Floaters|
|00002370| 41 6e 64 46 69 72 73 74 | 44 6f 63 75 6d 65 6e 74 |AndFirst|Document|
|00002380| 57 69 6e 64 6f 77 28 29 | 20 62 65 68 61 76 65 64 |Window()| behaved|
|00002390| 20 6c 69 6b 65 20 53 68 | 6f 77 50 65 6e 28 29 20 | like Sh|owPen() |
|000023a0| 61 6e 64 0d 3e 20 48 69 | 64 65 50 65 6e 28 29 2c |and.> Hi|dePen(),|
|000023b0| 20 61 6e 64 20 69 6e 63 | 72 65 6d 65 6e 74 65 64 | and inc|remented|
|000023c0| 20 61 20 22 61 63 74 69 | 76 61 74 65 20 6c 65 76 | a "acti|vate lev|
|000023d0| 65 6c 22 2e 20 20 41 6c | 74 68 6f 75 67 68 20 49 |el". Al|though I|
|000023e0| 27 76 65 20 61 6c 77 61 | 79 73 20 74 68 6f 75 67 |'ve alwa|ys thoug|
|000023f0| 68 74 20 69 74 0d 3e 20 | 77 61 73 20 70 6f 6f 72 |ht it.> |was poor|
|00002400| 20 69 6e 74 65 72 66 61 | 63 65 20 64 65 73 69 67 | interfa|ce desig|
|00002410| 6e 20 74 6f 20 64 6f 20 | 73 6f 2c 20 73 6f 6d 65 |n to do |so, some|
|00002420| 20 70 72 6f 67 72 61 6d | 73 20 64 69 73 70 6c 61 | program|s displa|
|00002430| 79 20 64 69 61 6c 6f 67 | 73 20 6f 6e 20 74 6f 70 |y dialog|s on top|
|00002440| 20 6f 66 20 65 61 63 68 | 0d 3e 20 6f 74 68 65 72 | of each|.> other|
|00002450| 2e 20 20 49 66 20 74 68 | 65 79 20 68 61 76 65 20 |. If th|ey have |
|00002460| 61 20 73 74 61 6e 64 61 | 72 64 20 72 6f 75 74 69 |a standa|rd routi|
|00002470| 6e 65 20 74 68 61 74 20 | 64 69 73 70 6c 61 79 20 |ne that |display |
|00002480| 64 69 61 6c 6f 67 73 20 | 74 68 65 6e 0d 3e 20 41 |dialogs |then.> A|
|00002490| 63 74 69 76 61 74 65 46 | 6c 6f 61 74 65 72 73 41 |ctivateF|loatersA|
|000024a0| 6e 64 46 69 72 73 74 44 | 6f 63 75 6d 65 6e 74 57 |ndFirstD|ocumentW|
|000024b0| 69 6e 64 6f 77 28 29 20 | 63 6f 75 6c 64 20 65 6e |indow() |could en|
|000024c0| 64 20 75 70 20 67 65 74 | 74 69 6e 67 20 63 61 6c |d up get|ting cal|
|000024d0| 6c 65 64 0d 3e 20 69 6e | 61 70 70 72 6f 70 72 69 |led.> in|appropri|
|000024e0| 61 74 65 6c 79 20 77 68 | 65 6e 20 74 68 65 20 74 |ately wh|en the t|
|000024f0| 6f 70 20 64 69 61 6c 6f | 67 20 69 73 20 64 69 73 |op dialo|g is dis|
|00002500| 6d 69 73 73 65 64 2e 20 | 20 41 20 6c 65 76 65 6c |missed. | A level|
|00002510| 20 63 6f 75 6e 74 20 77 | 6f 75 6c 64 20 70 72 65 | count w|ould pre|
|00002520| 76 65 6e 74 0d 3e 20 74 | 68 69 73 20 61 6e 64 20 |vent.> t|his and |
|00002530| 73 69 6d 70 6c 69 66 79 | 20 74 68 65 20 6d 6f 64 |simplify| the mod|
|00002540| 65 6c 2e 0d 0d 46 69 78 | 65 64 2c 20 49 20 64 69 |el...Fix|ed, I di|
|00002550| 64 6e 27 74 20 75 73 65 | 20 61 20 6c 65 76 65 6c |dn't use| a level|
|00002560| 20 63 6f 75 6e 74 2c 20 | 62 75 74 0d 41 63 74 69 | count, |but.Acti|
|00002570| 76 61 74 65 46 6c 6f 61 | 74 65 72 73 41 6e 64 46 |vateFloa|tersAndF|
|00002580| 69 72 73 74 44 6f 63 75 | 6d 65 6e 74 57 69 6e 64 |irstDocu|mentWind|
|00002590| 6f 77 20 63 68 65 63 6b | 73 20 66 6f 72 20 61 20 |ow check|s for a |
|000025a0| 6d 6f 64 61 6c 20 64 69 | 61 6c 6f 67 2c 20 61 6e |modal di|alog, an|
|000025b0| 64 0d 69 66 20 6f 6e 65 | 27 73 20 75 70 20 69 74 |d.if one|'s up it|
|000025c0| 20 64 6f 65 73 20 6e 6f | 74 68 69 6e 67 2e 0d 3d | does no|thing..=|
|000025d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000025e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000025f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002600| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002610| 3d 3d 3d 3d 3d 0d 3e 20 | 49 74 20 68 61 73 20 73 |=====.> |It has s|
|00002620| 65 76 65 72 65 20 70 72 | 6f 62 6c 65 6d 73 20 77 |evere pr|oblems w|
|00002630| 69 74 68 20 69 6e 76 69 | 73 69 62 6c 65 20 77 69 |ith invi|sible wi|
|00002640| 6e 64 6f 77 73 2e 20 20 | 49 66 20 79 6f 75 20 68 |ndows. |If you h|
|00002650| 61 76 65 20 69 6e 76 69 | 73 69 62 6c 65 20 77 69 |ave invi|sible wi|
|00002660| 6e 64 6f 77 73 0d 3e 20 | 61 72 6f 75 6e 64 2c 20 |ndows.> |around, |
|00002670| 69 74 20 69 73 20 70 6f | 73 73 69 62 6c 65 20 66 |it is po|ssible f|
|00002680| 6f 72 20 74 68 65 20 63 | 6f 64 65 20 74 6f 20 6f |or the c|ode to o|
|00002690| 72 70 68 61 6e 20 61 20 | 77 69 6e 64 6f 77 20 66 |rphan a |window f|
|000026a0| 72 6f 6d 20 74 68 65 20 | 70 72 6f 63 65 73 73 27 |rom the |process'|
|000026b0| 0d 3e 20 77 69 6e 64 6f | 77 20 6c 69 73 74 2c 20 |.> windo|w list, |
|000026c0| 77 69 74 68 20 72 61 74 | 68 65 72 20 64 69 73 61 |with rat|her disa|
|000026d0| 73 74 65 72 6f 75 73 20 | 72 65 73 75 6c 74 73 2e |sterous |results.|
|000026e0| 20 20 0d 3e 20 0d 3e 20 | 42 61 73 69 63 61 6c 6c | .> .> |Basicall|
|000026f0| 79 2c 20 77 68 65 72 65 | 76 65 72 20 74 68 65 20 |y, where|ver the |
|00002700| 63 6f 64 65 20 75 73 65 | 73 20 74 68 65 20 76 61 |code use|s the va|
|00002710| 72 69 61 62 6c 65 20 22 | 77 69 6e 64 6f 77 42 65 |riable "|windowBe|
|00002720| 68 69 6e 64 22 2c 20 69 | 74 27 73 20 62 72 6f 6b |hind", i|t's brok|
|00002730| 65 6e 2e 20 0d 3e 20 54 | 68 65 20 72 65 6f 72 64 |en. .> T|he reord|
|00002740| 65 72 69 6e 67 20 6f 66 | 20 74 68 65 20 77 69 6e |ering of| the win|
|00002750| 64 6f 77 20 6c 69 73 74 | 20 74 68 61 74 20 67 6f |dow list| that go|
|00002760| 65 73 20 6f 6e 20 74 68 | 65 72 65 20 63 61 6e 20 |es on th|ere can |
|00002770| 63 61 75 73 65 20 77 69 | 6e 64 6f 77 73 20 74 6f |cause wi|ndows to|
|00002780| 20 62 65 0d 3e 20 6f 72 | 70 68 61 6e 65 64 2e 20 | be.> or|phaned. |
|00002790| 20 49 20 67 6c 61 6e 63 | 65 64 20 61 74 20 74 68 | I glanc|ed at th|
|000027a0| 65 20 6e 65 77 20 76 65 | 72 73 69 6f 6e 20 66 72 |e new ve|rsion fr|
|000027b0| 6f 6d 20 44 65 61 6e 20 | 74 68 61 74 20 54 72 6f |om Dean |that Tro|
|000027c0| 79 20 47 61 75 6c 20 73 | 65 6e 74 20 6d 65 0d 3e |y Gaul s|ent me.>|
|000027d0| 20 74 6f 64 61 79 20 61 | 6e 64 20 69 74 20 61 70 | today a|nd it ap|
|000027e0| 70 65 61 72 73 20 74 6f | 20 73 74 69 6c 6c 20 68 |pears to| still h|
|000027f0| 61 76 65 20 74 68 69 73 | 20 70 72 6f 62 6c 65 6d |ave this| problem|
|00002800| 2e 20 0d 3e 20 0d 3e 20 | 48 65 72 65 20 61 72 65 |. .> .> |Here are|
|00002810| 20 74 68 65 20 72 65 6c | 65 76 61 6e 74 20 6d 6f | the rel|evant mo|
|00002820| 64 69 66 69 63 61 74 69 | 6f 6e 73 20 49 20 68 61 |dificati|ons I ha|
|00002830| 76 65 20 6d 61 64 65 2e | 20 20 54 68 65 79 20 73 |ve made.| They s|
|00002840| 65 65 6d 20 74 6f 20 77 | 6f 72 6b 2c 20 62 75 74 |eem to w|ork, but|
|00002850| 20 68 61 76 65 0d 3e 20 | 6e 6f 74 20 62 65 65 6e | have.> |not been|
|00002860| 20 68 65 61 76 69 6c 79 | 20 74 65 73 74 65 64 2e | heavily| tested.|
|00002870| 20 20 54 68 65 79 20 61 | 72 65 2c 20 68 6f 77 65 | They a|re, howe|
|00002880| 76 65 72 2c 20 64 65 66 | 69 6e 69 74 65 6c 79 20 |ver, def|initely |
|00002890| 61 6e 20 69 6d 70 72 6f | 76 65 6d 65 6e 74 20 6f |an impro|vement o|
|000028a0| 76 65 72 0d 3e 20 74 68 | 65 20 6f 72 69 67 69 6e |ver.> th|e origin|
|000028b0| 61 6c 20 77 2e 72 2e 74 | 2e 20 6d 79 20 75 73 61 |al w.r.t|. my usa|
|000028c0| 67 65 20 6f 66 20 74 68 | 65 20 66 6c 6f 61 74 69 |ge of th|e floati|
|000028d0| 6e 67 20 77 69 6e 64 6f | 77 73 20 63 6f 64 65 2e |ng windo|ws code.|
|000028e0| 0d 0d 3c 3c 20 63 6f 64 | 65 20 64 65 6c 65 74 65 |..<< cod|e delete|
|000028f0| 64 20 3e 3e 0d 46 69 78 | 65 64 2c 20 6d 6f 72 65 |d >>.Fix|ed, more|
|00002900| 20 6f 72 20 6c 65 73 73 | 2c 20 49 20 74 68 69 6e | or less|, I thin|
|00002910| 6b 20 3a 2d 29 2e 20 53 | 68 6f 77 52 65 66 65 72 |k :-). S|howRefer|
|00002920| 65 6e 63 65 64 57 69 6e | 64 6f 77 20 61 6e 64 20 |encedWin|dow and |
|00002930| 48 69 64 65 52 65 66 65 | 72 65 6e 63 65 64 57 69 |HideRefe|rencedWi|
|00002940| 6e 64 6f 77 0d 77 65 72 | 65 20 72 65 77 72 69 74 |ndow.wer|e rewrit|
|00002950| 74 65 6e 2c 20 70 72 65 | 74 74 79 20 6d 75 63 68 |ten, pre|tty much|
|00002960| 20 66 72 6f 6d 20 74 68 | 65 20 67 72 6f 75 6e 64 | from th|e ground|
|00002970| 20 75 70 2c 20 61 6e 64 | 20 28 49 20 74 68 69 6e | up, and| (I thin|
|00002980| 6b 29 20 61 72 65 20 6d | 75 63 68 20 62 65 74 74 |k) are m|uch bett|
|00002990| 65 72 2e 20 49 0d 65 78 | 70 65 63 74 20 73 6f 6d |er. I.ex|pect som|
|000029a0| 65 20 62 75 67 73 20 77 | 69 6c 6c 20 62 65 20 66 |e bugs w|ill be f|
|000029b0| 6f 75 6e 64 2c 20 74 68 | 6f 75 67 68 2e 2e 2e 0d |ound, th|ough....|
|000029c0| 0d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.=======|========|
|000029d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000029e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000029f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002a00| 3d 3d 3d 3d 3d 3d 3d 0d | 0d 3e 20 31 2e 20 57 65 |=======.|.> 1. We|
|00002a10| 20 66 6f 75 6e 64 20 69 | 74 20 6e 65 63 65 73 73 | found i|t necess|
|00002a20| 61 72 79 20 74 6f 20 61 | 64 64 20 63 6f 64 65 20 |ary to a|dd code |
|00002a30| 74 6f 20 4e 65 77 57 69 | 6e 64 6f 77 52 65 66 65 |to NewWi|ndowRefe|
|00002a40| 72 65 6e 63 65 20 74 6f | 20 73 75 70 70 6f 72 74 |rence to| support|
|00002a50| 20 77 69 6e 64 6f 77 73 | 20 6f 66 0d 3e 20 74 79 | windows| of.> ty|
|00002a60| 70 65 20 6d 6f 76 61 62 | 6c 65 44 42 6f 78 50 72 |pe movab|leDBoxPr|
|00002a70| 6f 63 2e 0d 3e 20 0d 3e | 20 32 2e 20 57 65 20 61 |oc..> .>| 2. We a|
|00002a80| 64 64 65 64 20 61 20 63 | 6f 6e 73 74 61 6e 74 20 |dded a c|onstant |
|00002a90| 6b 48 61 73 56 65 72 74 | 69 63 61 6c 54 69 74 6c |kHasVert|icalTitl|
|00002aa0| 65 62 61 72 4d 61 73 6b | 20 61 6e 64 20 61 70 70 |ebarMask| and app|
|00002ab0| 72 6f 70 72 69 61 74 65 | 20 63 6f 64 65 20 74 6f |ropriate| code to|
|00002ac0| 0d 3e 20 4e 65 77 57 69 | 6e 64 6f 77 52 65 66 65 |.> NewWi|ndowRefe|
|00002ad0| 72 65 6e 63 65 20 74 6f | 20 73 75 70 70 6f 72 74 |rence to| support|
|00002ae0| 20 49 6e 66 69 6e 69 74 | 79 20 57 69 6e 64 6f 69 | Infinit|y Windoi|
|00002af0| 64 20 33 2e 30 27 73 20 | 76 65 72 74 69 63 61 6c |d 3.0's |vertical|
|00002b00| 20 74 69 74 6c 65 62 61 | 72 20 66 65 61 74 75 72 | titleba|r featur|
|00002b10| 65 2e 0d 3e 20 0d 3e 20 | 33 2e 20 57 65 20 61 64 |e..> .> |3. We ad|
|00002b20| 64 65 64 20 63 6f 64 65 | 20 74 6f 20 4e 65 77 57 |ded code| to NewW|
|00002b30| 69 6e 64 6f 77 52 65 66 | 65 72 65 6e 63 65 20 74 |indowRef|erence t|
|00002b40| 6f 20 73 75 70 70 6f 72 | 74 20 49 6e 66 69 6e 69 |o suppor|t Infini|
|00002b50| 74 79 20 57 69 6e 64 6f | 69 64 20 33 2e 30 27 73 |ty Windo|id 3.0's|
|00002b60| 20 7a 6f 6f 6d 20 61 6e | 64 0d 3e 20 67 72 6f 77 | zoom an|d.> grow|
|00002b70| 20 62 6f 78 20 66 65 61 | 74 75 72 65 73 2e 0d 20 | box fea|tures.. |
|00002b80| 0d 46 69 78 65 64 2c 20 | 61 6c 6c 20 74 68 65 20 |.Fixed, |all the |
|00002b90| 76 61 72 69 61 74 69 6f | 6e 20 63 6f 64 65 73 20 |variatio|n codes |
|00002ba0| 61 6e 64 20 73 75 63 68 | 20 6d 61 74 63 68 20 74 |and such| match t|
|00002bb0| 68 65 20 37 2e 35 20 76 | 61 6c 75 65 73 20 28 61 |he 7.5 v|alues (a|
|00002bc0| 6e 64 20 49 6e 66 69 6e | 69 74 79 20 33 2e 30 29 |nd Infin|ity 3.0)|
|00002bd0| 2c 0d 61 6e 64 20 6d 6f | 76 61 62 6c 65 20 6d 6f |,.and mo|vable mo|
|00002be0| 64 61 6c 73 20 61 72 65 | 20 63 72 65 61 74 65 64 |dals are| created|
|00002bf0| 20 63 6f 72 72 65 63 74 | 6c 79 2e 0d 0d 3d 3d 3d | correct|ly...===|
|00002c00| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002c10| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002c20| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002c30| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002c40| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 0d 0d 3e |========|=====..>|
|00002c50| 20 54 68 65 72 65 20 69 | 73 20 61 6e 20 69 6d 70 | There i|s an imp|
|00002c60| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 20 6e 61 73 74 |lementat|ion nast|
|00002c70| 79 20 62 75 67 20 69 6e | 20 74 68 65 20 46 6c 6f |y bug in| the Flo|
|00002c80| 61 74 65 72 20 53 61 6d | 70 6c 65 2e 0d 3e 20 0d |ater Sam|ple..> .|
|00002c90| 3e 20 59 6f 75 20 63 61 | 6e 20 72 65 76 65 61 6c |> You ca|n reveal|
|00002ca0| 20 69 74 20 62 79 3a 0d | 3e 20 20 20 20 20 2d 20 | it by:.|> - |
|00002cb0| 63 6c 6f 73 69 6e 67 20 | 62 6f 74 68 20 66 6c 6f |closing |both flo|
|00002cc0| 61 74 69 6e 67 20 77 69 | 6e 64 6f 77 73 2c 0d 3e |ating wi|ndows,.>|
|00002cd0| 20 20 20 20 20 2d 20 6f | 70 65 6e 69 6e 67 20 74 | - o|pening t|
|00002ce0| 68 65 20 46 69 6e 64 20 | 44 69 61 6c 6f 67 20 61 |he Find |Dialog a|
|00002cf0| 6e 64 20 6d 6f 76 69 6e | 67 20 69 74 20 6f 76 65 |nd movin|g it ove|
|00002d00| 72 20 74 68 65 20 72 65 | 63 74 61 6e 67 6c 65 20 |r the re|ctangle |
|00002d10| 69 6e 73 69 64 65 20 74 | 68 65 20 0d 3e 20 09 09 |inside t|he .> ..|
|00002d20| 27 55 6e 74 69 74 6c 65 | 64 27 20 77 69 6e 64 6f |'Untitle|d' windo|
|00002d30| 77 20 28 69 66 20 6e 6f | 74 20 61 6c 72 65 61 64 |w (if no|t alread|
|00002d40| 79 20 68 65 72 65 29 2c | 0d 3e 20 20 20 20 20 2d |y here),|.> -|
|00002d50| 20 63 6c 6f 73 69 6e 67 | 20 74 68 65 20 46 69 6e | closing| the Fin|
|00002d60| 64 20 44 69 61 6c 6f 67 | 2e 0d 3e 20 54 68 65 6e |d Dialog|..> Then|
|00002d70| 20 74 68 65 20 72 65 63 | 74 61 6e 67 6c 65 20 69 | the rec|tangle i|
|00002d80| 73 20 72 65 64 72 61 77 | 6e 20 65 6d 70 74 79 20 |s redraw|n empty |
|00002d90| 61 73 20 6f 66 20 61 6e | 20 69 6e 61 63 74 69 76 |as of an| inactiv|
|00002da0| 65 20 77 69 6e 64 6f 77 | 20 61 6c 74 68 6f 75 67 |e window| althoug|
|00002db0| 68 20 74 68 65 20 77 69 | 6e 64 6f 77 20 69 73 0d |h the wi|ndow is.|
|00002dc0| 3e 20 61 63 74 69 76 65 | 2e 0d 3e 20 0d 3e 20 54 |> active|..> .> T|
|00002dd0| 68 61 74 20 69 73 20 64 | 75 65 20 74 6f 20 74 68 |hat is d|ue to th|
|00002de0| 65 20 64 6f 46 69 6c 6c | 20 63 68 65 63 6b 69 6e |e doFill| checkin|
|00002df0| 67 20 69 6e 20 44 72 61 | 77 57 69 6e 64 6f 77 43 |g in Dra|wWindowC|
|00002e00| 6f 6e 74 65 6e 74 28 29 | 3a 0d 3e 20 20 20 20 20 |ontent()|:.> |
|00002e10| 2d 20 27 74 72 75 65 27 | 20 69 73 20 63 6f 6d 70 |- 'true'| is comp|
|00002e20| 69 6c 65 64 20 62 79 20 | 43 57 20 61 73 20 30 78 |iled by |CW as 0x|
|00002e30| 30 31 2c 0d 3e 20 20 20 | 20 20 2d 20 77 68 69 6c |01,.> | - whil|
|00002e40| 65 20 64 6f 46 69 6c 6c | 20 69 73 20 30 78 46 46 |e doFill| is 0xFF|
|00002e50| 20 77 68 65 6e 20 54 52 | 55 45 20 28 68 69 6c 69 | when TR|UE (hili|
|00002e60| 74 65 20 66 6c 61 67 29 | 2c 0d 3e 20 73 6f 20 64 |te flag)|,.> so d|
|00002e70| 6f 46 69 6c 6c 20 63 61 | 6e 20 62 65 20 73 65 65 |oFill ca|n be see|
|00002e80| 6e 20 61 73 20 46 41 4c | 53 45 21 0d 3e 20 0d 3e |n as FAL|SE!.> .>|
|00002e90| 20 49 4d 48 4f 2c 20 74 | 68 65 20 27 3d 3d 20 74 | IMHO, t|he '== t|
|00002ea0| 72 75 65 27 20 63 6f 6d | 70 61 72 69 73 6f 6e 20 |rue' com|parison |
|00002eb0| 69 73 20 67 65 6e 65 72 | 61 6c 6c 79 20 61 20 72 |is gener|ally a r|
|00002ec0| 69 73 6b 79 20 62 75 73 | 69 6e 65 73 73 2e 20 54 |isky bus|iness. T|
|00002ed0| 68 65 20 6c 61 7a 79 20 | 70 65 6f 70 6c 65 2c 20 |he lazy |people, |
|00002ee0| 0d 3e 20 6c 69 6b 65 20 | 6d 65 2c 20 77 68 6f 20 |.> like |me, who |
|00002ef0| 70 72 65 66 65 72 73 20 | 74 6f 20 74 79 70 65 20 |prefers |to type |
|00002f00| 6f 6e 6c 79 20 22 69 66 | 20 28 64 6f 46 69 6c 6c |only "if| (doFill|
|00002f10| 29 22 20 63 61 6e 6e 6f | 74 20 72 75 6e 20 69 6e |)" canno|t run in|
|00002f20| 74 6f 20 74 68 69 73 20 | 6b 69 6e 64 20 6f 66 0d |to this |kind of.|
|00002f30| 3e 20 69 6d 70 6c 65 6d | 65 6e 74 61 74 69 6f 6e |> implem|entation|
|00002f40| 20 70 72 6f 62 6c 65 6d | 2e 0d 0d 46 69 78 65 64 | problem|...Fixed|
|00002f50| 21 20 54 68 61 6e 6b 73 | 21 20 54 68 61 74 27 73 |! Thanks|! That's|
|00002f60| 20 61 20 62 69 7a 61 72 | 72 65 20 6f 6e 65 2e 20 | a bizar|re one. |
|00002f70| 49 20 61 63 74 75 61 6c | 6c 79 20 74 68 69 6e 6b |I actual|ly think|
|00002f80| 20 6f 66 20 74 68 69 73 | 20 61 73 20 61 20 63 6f | of this| as a co|
|00002f90| 6d 70 69 6c 65 72 20 62 | 75 67 20 6d 79 73 65 6c |mpiler b|ug mysel|
|00002fa0| 66 2c 0d 62 75 74 20 74 | 68 61 74 27 73 20 70 72 |f,.but t|hat's pr|
|00002fb0| 6f 62 61 62 6c 79 20 75 | 6e 66 61 69 72 20 6f 66 |obably u|nfair of|
|00002fc0| 20 6d 65 2e 20 3a 2d 29 | 0d 0d 3d 3d 3d 3d 3d 3d | me. :-)|..======|
|00002fd0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002fe0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002ff0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003000| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003010| 0d 41 66 74 65 72 20 66 | 69 72 73 74 20 74 65 73 |.After f|irst tes|
|00003020| 74 20 6f 66 20 72 65 77 | 72 69 74 65 3a 0d 3d 3d |t of rew|rite:.==|
|00003030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003060| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003070| 3d 3d 3d 3d 0d 3e 20 31 | 2e 20 49 20 61 6d 20 75 |====.> 1|. I am u|
|00003080| 73 69 6e 67 20 53 43 20 | 38 2e 30 2e 31 20 77 69 |sing SC |8.0.1 wi|
|00003090| 74 68 20 55 6e 69 76 65 | 72 73 61 6c 20 49 6e 74 |th Unive|rsal Int|
|000030a0| 65 72 66 61 63 65 73 20 | 32 2e 30 20 69 6e 20 d2 |erfaces |2.0 in .|
|000030b0| 4d 50 57 20 4c 61 74 65 | 73 74 d3 0d 3e 20 6f 6e |MPW Late|st..> on|
|000030c0| 20 45 54 4f 20 23 31 37 | 2e 20 49 20 65 6e 63 6f | ETO #17|. I enco|
|000030d0| 75 6e 74 65 72 65 64 20 | 74 68 72 65 65 20 63 6f |untered |three co|
|000030e0| 6d 70 69 6c 65 72 20 65 | 72 72 6f 72 73 3a 0d 3e |mpiler e|rrors:.>|
|000030f0| 20 0d 3e 20 69 2e 20 53 | 69 6e 63 65 20 47 65 74 | .> i. S|ince Get|
|00003100| 57 61 73 56 69 73 69 62 | 6c 65 20 72 65 74 75 72 |WasVisib|le retur|
|00003110| 6e 73 20 61 20 42 6f 6f | 6c 65 61 6e 2c 20 49 20 |ns a Boo|lean, I |
|00003120| 6e 65 65 64 65 64 20 74 | 6f 20 63 68 61 6e 67 65 |needed t|o change|
|00003130| 20 72 65 74 75 72 6e 0d | 3e 20 6e 69 6c 20 74 6f | return.|> nil to|
|00003140| 20 72 65 74 75 72 6e 20 | 46 41 4c 53 45 2e 0d 3e | return |FALSE..>|
|00003150| 20 0d 3e 20 69 69 2e 20 | 53 69 6e 63 65 20 47 65 | .> ii. |Since Ge|
|00003160| 74 45 78 74 57 52 65 66 | 43 6f 6e 20 72 65 74 75 |tExtWRef|Con retu|
|00003170| 72 6e 73 20 61 20 6c 6f | 6e 67 2c 20 49 20 6e 65 |rns a lo|ng, I ne|
|00003180| 65 64 65 64 20 74 6f 20 | 63 68 61 6e 67 65 20 72 |eded to |change r|
|00003190| 65 74 75 72 6e 20 6e 69 | 6c 0d 3e 20 74 6f 20 72 |eturn ni|l.> to r|
|000031a0| 65 74 75 72 6e 20 30 2e | 0d 3e 20 0d 3e 20 69 69 |eturn 0.|.> .> ii|
|000031b0| 69 2e 20 49 20 6e 65 65 | 64 65 64 20 74 6f 20 23 |i. I nee|ded to #|
|000031c0| 69 6e 63 6c 75 64 65 20 | 3c 45 72 72 6f 72 73 2e |include |<Errors.|
|000031d0| 68 3e 20 74 6f 20 64 65 | 66 69 6e 65 20 72 65 73 |h> to de|fine res|
|000031e0| 4e 6f 74 46 6f 75 6e 64 | 2c 20 75 73 65 64 20 69 |NotFound|, used i|
|000031f0| 6e 0d 3e 20 47 65 74 57 | 49 4e 44 53 74 61 74 73 |n.> GetW|INDStats|
|00003200| 2e 0d 0d 46 69 78 65 64 | 2e 0d 3d 3d 3d 3d 3d 3d |...Fixed|..======|
|00003210| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003220| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003230| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003240| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003250| 0d 3e 20 32 2e 20 46 6f | 72 20 63 6f 6e 73 69 73 |.> 2. Fo|r consis|
|00003260| 74 65 6e 63 79 2c 20 49 | 20 73 75 67 67 65 73 74 |tency, I| suggest|
|00003270| 20 74 68 61 74 20 79 6f | 75 20 6d 61 6b 65 20 47 | that yo|u make G|
|00003280| 65 74 4e 65 78 74 56 69 | 73 69 62 6c 65 57 69 6e |etNextVi|sibleWin|
|00003290| 64 6f 77 20 61 6e 0d 3e | 20 22 65 78 74 65 72 6e |dow an.>| "extern|
|000032a0| 20 70 61 73 63 61 6c 22 | 20 6c 69 6b 65 20 61 6c | pascal"| like al|
|000032b0| 6c 20 74 68 65 20 6f 74 | 68 65 72 20 72 6f 75 74 |l the ot|her rout|
|000032c0| 69 6e 65 73 20 69 6e 20 | 74 68 65 20 2e 68 20 66 |ines in |the .h f|
|000032d0| 69 6c 65 2e 0d 0d 46 69 | 78 65 64 0d 3d 3d 3d 3d |ile...Fi|xed.====|
|000032e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000032f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003300| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003310| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003320| 3d 3d 0d 3e 20 33 2e 20 | 49 20 77 61 73 20 73 6f |==.> 3. |I was so|
|00003330| 6d 65 77 68 61 74 20 73 | 75 72 70 72 69 73 65 64 |mewhat s|urprised|
|00003340| 20 77 68 65 6e 20 49 20 | 72 65 61 64 20 22 57 68 | when I |read "Wh|
|00003350| 6f 20 65 76 65 72 20 63 | 61 6c 6c 73 20 4e 65 77 |o ever c|alls New|
|00003360| 57 69 6e 64 6f 77 20 74 | 6f 0d 3e 20 6d 61 6b 65 |Window t|o.> make|
|00003370| 20 61 20 64 69 61 6c 6f | 67 20 61 6e 79 77 61 79 | a dialo|g anyway|
|00003380| 3f 22 2c 20 73 69 6e 63 | 65 20 77 65 20 72 65 6c |?", sinc|e we rel|
|00003390| 79 20 6f 6e 20 63 6f 6d | 6d 6f 6e 20 61 20 77 69 |y on com|mon a wi|
|000033a0| 6e 64 6f 77 20 63 72 65 | 61 74 69 6f 6e 0d 3e 20 |ndow cre|ation.> |
|000033b0| 73 63 68 65 6d 65 20 66 | 6f 72 20 61 6c 6c 20 6f |scheme f|or all o|
|000033c0| 75 72 20 77 69 6e 64 6f | 77 69 6e 67 20 6e 65 65 |ur windo|wing nee|
|000033d0| 64 73 2e 20 20 54 68 65 | 20 63 75 72 72 65 6e 74 |ds. The| current|
|000033e0| 20 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 20 | impleme|ntation |
|000033f0| 6f 66 0d 3e 20 43 68 65 | 63 6b 57 69 6e 64 6f 77 |of.> Che|ckWindow|
|00003400| 4f 72 64 65 72 69 6e 67 | 20 77 69 6c 6c 20 70 6c |Ordering| will pl|
|00003410| 61 63 65 20 61 20 6d 6f | 64 61 6c 20 77 69 6e 64 |ace a mo|dal wind|
|00003420| 6f 77 20 28 69 6e 63 6c | 75 64 69 6e 67 20 6d 6f |ow (incl|uding mo|
|00003430| 76 61 62 6c 65 0d 3e 20 | 6d 6f 64 61 6c 20 64 69 |vable.> |modal di|
|00003440| 61 6c 6f 67 73 29 20 62 | 65 68 69 6e 64 20 61 6c |alogs) b|ehind al|
|00003450| 6c 20 66 6c 6f 61 74 65 | 72 73 2c 20 77 68 69 63 |l floate|rs, whic|
|00003460| 68 20 69 73 20 6e 6f 74 | 20 74 68 65 20 64 65 73 |h is not| the des|
|00003470| 69 72 65 64 20 72 65 73 | 75 6c 74 2e 0d 3e 20 0d |ired res|ult..> .|
|00003480| 3e 20 41 72 65 20 79 6f | 75 20 72 65 63 6f 6d 6d |> Are yo|u recomm|
|00003490| 65 6e 64 69 6e 67 20 74 | 68 61 74 20 77 65 20 63 |ending t|hat we c|
|000034a0| 61 6c 6c 20 4e 65 77 44 | 69 61 6c 6f 67 20 69 6e |all NewD|ialog in|
|000034b0| 73 74 65 61 64 20 6f 66 | 20 4e 65 77 57 69 6e 64 |stead of| NewWind|
|000034c0| 6f 77 20 74 6f 0d 3e 20 | 63 72 65 61 74 65 20 6f |ow to.> |create o|
|000034d0| 75 72 20 64 69 61 6c 6f | 67 73 2c 20 61 6e 64 20 |ur dialo|gs, and |
|000034e0| 6d 61 6b 65 20 73 75 72 | 65 20 77 65 20 75 73 65 |make sur|e we use|
|000034f0| 20 44 69 61 6c 6f 67 20 | 4d 61 6e 61 67 65 72 20 | Dialog |Manager |
|00003500| 63 61 6c 6c 73 0d 3e 20 | 65 76 65 72 79 77 68 65 |calls.> |everywhe|
|00003510| 72 65 20 73 6f 20 74 68 | 61 74 20 77 65 20 63 6f |re so th|at we co|
|00003520| 6d 70 6c 79 20 77 69 74 | 68 20 53 54 52 49 43 54 |mply wit|h STRICT|
|00003530| 5f 57 49 4e 44 4f 57 53 | 3f 20 20 57 65 20 77 65 |_WINDOWS|? We we|
|00003540| 72 65 20 66 61 69 74 68 | 66 75 6c 6c 79 0d 3e 20 |re faith|fully.> |
|00003550| 66 6f 6c 6c 6f 77 69 6e | 67 20 74 68 65 20 61 64 |followin|g the ad|
|00003560| 76 69 63 65 20 69 6e 20 | 54 65 63 68 6e 69 63 61 |vice in |Technica|
|00003570| 6c 20 23 32 30 33 2c 20 | 4d 61 6e 61 67 65 72 69 |l #203, |Manageri|
|00003580| 61 6c 20 41 62 75 73 65 | 2c 20 61 6e 64 20 75 73 |al Abuse|, and us|
|00003590| 69 6e 67 0d 3e 20 74 68 | 65 20 77 69 6e 64 6f 77 |ing.> th|e window|
|000035a0| 20 6d 61 6e 61 67 65 72 | 20 69 6e 73 74 65 61 64 | manager| instead|
|000035b0| 20 6f 66 20 74 68 65 20 | 64 69 61 6c 6f 67 20 6d | of the |dialog m|
|000035c0| 61 6e 61 67 65 72 20 66 | 6f 72 20 6f 75 72 20 63 |anager f|or our c|
|000035d0| 6f 6d 70 6c 65 78 0d 3e | 20 6d 6f 64 61 6c 20 77 |omplex.>| modal w|
|000035e0| 69 6e 64 6f 77 73 2e 20 | 20 49 73 20 74 68 65 20 |indows. | Is the |
|000035f0| 62 65 73 74 20 6f 70 74 | 69 6f 6e 20 66 6f 72 20 |best opt|ion for |
|00003600| 75 73 20 74 6f 20 68 61 | 63 6b 20 43 68 65 63 6b |us to ha|ck Check|
|00003610| 57 69 6e 64 6f 77 4f 72 | 64 65 72 69 6e 67 0d 3e |WindowOr|dering.>|
|00003620| 20 74 6f 20 70 6c 61 63 | 65 20 6d 6f 64 61 6c 73 | to plac|e modals|
|00003630| 20 69 6e 20 66 72 6f 6e | 74 20 6f 66 20 65 76 65 | in fron|t of eve|
|00003640| 72 79 74 68 69 6e 67 3f | 20 20 53 69 6e 63 65 20 |rything?| Since |
|00003650| 6d 6f 64 61 6c 20 77 69 | 6e 64 6f 77 73 20 61 72 |modal wi|ndows ar|
|00003660| 65 20 6e 6f 74 0d 3e 20 | 73 75 70 70 6f 72 74 65 |e not.> |supporte|
|00003670| 64 20 63 6f 72 72 65 63 | 74 6c 79 2c 20 73 68 6f |d correc|tly, sho|
|00003680| 75 6c 64 6e 27 74 20 79 | 6f 75 20 72 65 6d 6f 76 |uldn't y|ou remov|
|00003690| 65 20 74 68 65 6d 20 66 | 72 6f 6d 0d 3e 20 41 74 |e them f|rom.> At|
|000036a0| 74 72 69 62 75 74 65 73 | 54 6f 57 69 6e 64 6f 77 |tributes|ToWindow|
|000036b0| 49 6e 66 6f 3f 0d 0d 59 | 69 6b 65 73 2e 20 49 74 |Info?..Y|ikes. It|
|000036c0| 20 77 61 73 20 61 20 6c | 69 74 74 6c 65 20 63 61 | was a l|ittle ca|
|000036d0| 76 61 6c 69 65 72 20 6f | 66 20 6d 65 20 74 6f 20 |valier o|f me to |
|000036e0| 65 6c 69 6d 69 6e 61 74 | 65 20 74 68 65 20 6d 6f |eliminat|e the mo|
|000036f0| 64 61 6c 20 64 69 61 6c | 6f 67 0d 63 61 73 65 2c |dal dial|og.case,|
|00003700| 20 61 6e 64 20 69 74 27 | 73 20 66 69 78 65 64 20 | and it'|s fixed |
|00003710| 6e 6f 77 20 28 62 6f 74 | 68 20 4e 65 77 57 69 6e |now (bot|h NewWin|
|00003720| 64 6f 77 52 65 66 65 72 | 65 6e 63 65 20 61 6e 64 |dowRefer|ence and|
|00003730| 0d 47 65 74 4e 65 77 57 | 69 6e 64 6f 77 52 65 66 |.GetNewW|indowRef|
|00003740| 65 72 65 6e 63 65 20 63 | 68 65 63 6b 20 66 6f 72 |erence c|heck for|
|00003750| 20 6d 6f 64 61 6c 20 77 | 69 6e 64 6f 77 73 2c 20 | modal w|indows, |
|00003760| 43 68 65 63 6b 57 69 6e | 64 6f 77 4f 64 65 72 69 |CheckWin|dowOderi|
|00003770| 6e 67 0d 6f 6e 6c 79 20 | 61 6c 6c 6f 77 73 20 6d |ng.only |allows m|
|00003780| 6f 64 61 6c 73 20 74 6f | 20 62 65 20 63 72 65 61 |odals to| be crea|
|00003790| 74 65 64 20 69 6e 20 66 | 72 6f 6e 74 20 6f 66 20 |ted in f|ront of |
|000037a0| 61 6c 6c 20 77 69 6e 64 | 6f 77 73 2c 20 65 74 63 |all wind|ows, etc|
|000037b0| 2e 29 0d 48 4f 57 45 56 | 45 52 3a 20 6d 79 20 72 |.).HOWEV|ER: my r|
|000037c0| 65 63 6f 6d 6d 65 6e 64 | 61 74 69 6f 6e 20 69 73 |ecommend|ation is|
|000037d0| 20 64 65 66 69 6e 69 74 | 65 6c 79 20 74 6f 20 6d | definit|ely to m|
|000037e0| 61 6b 65 20 79 6f 75 72 | 20 63 6f 64 65 20 63 6f |ake your| code co|
|000037f0| 6d 70 69 6c 65 0d 77 69 | 74 68 20 53 54 52 49 43 |mpile.wi|th STRIC|
|00003800| 54 5f 57 49 4e 44 4f 57 | 53 20 28 73 72 69 63 74 |T_WINDOW|S (srict|
|00003810| 20 45 56 45 52 59 54 48 | 49 4e 47 2c 20 61 63 74 | EVERYTH|ING, act|
|00003820| 75 61 6c 6c 79 29 2e 20 | 53 6f 6d 65 64 61 79 2c |ually). |Someday,|
|00003830| 20 79 6f 75 27 6c 6c 0d | 68 61 76 65 20 6e 6f 20 | you'll.|have no |
|00003840| 63 68 6f 69 63 65 2c 20 | 61 73 20 61 20 6d 61 74 |choice, |as a mat|
|00003850| 74 65 72 20 6f 66 20 66 | 61 63 74 2c 20 73 6f 20 |ter of f|act, so |
|00003860| 74 68 65 20 73 6f 6f 6e | 65 72 20 74 68 65 20 62 |the soon|er the b|
|00003870| 65 74 74 65 72 2e 20 49 | 66 0d 74 68 61 74 20 6d |etter. I|f.that m|
|00003880| 65 61 6e 73 20 79 6f 75 | 20 68 61 76 65 20 74 6f |eans you| have to|
|00003890| 20 61 62 75 73 65 20 74 | 68 65 20 44 69 61 6c 6f | abuse t|he Dialo|
|000038a0| 67 20 6d 61 6e 61 67 65 | 72 20 61 20 62 69 74 2c |g manage|r a bit,|
|000038b0| 20 73 6f 20 62 65 20 69 | 74 20 28 74 68 65 0d 64 | so be i|t (the.d|
|000038c0| 69 61 6c 6f 67 20 6d 61 | 6e 61 67 65 72 20 69 73 |ialog ma|nager is|
|000038d0| 20 61 20 6c 69 74 74 6c | 65 20 6d 6f 72 65 20 72 | a littl|e more r|
|000038e0| 6f 62 75 73 74 20 74 68 | 61 6e 20 77 68 65 6e 20 |obust th|an when |
|000038f0| 74 68 61 74 20 74 65 63 | 68 20 6e 6f 74 65 20 77 |that tec|h note w|
|00003900| 61 73 0d 77 72 69 74 74 | 65 6e 29 2e 20 49 66 20 |as.writt|en). If |
|00003910| 79 6f 75 20 63 61 6e 20 | 64 6f 20 69 74 20 77 69 |you can |do it wi|
|00003920| 74 68 6f 75 74 20 64 69 | 61 6c 6f 67 20 6d 61 6e |thout di|alog man|
|00003930| 61 67 65 72 20 63 61 6c | 6c 73 2c 20 74 68 61 74 |ager cal|ls, that|
|00003940| 27 73 20 65 76 65 6e 0d | 62 65 74 74 65 72 2e 0d |'s even.|better..|
|00003950| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003960| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003970| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003980| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003990| 3d 3d 3d 3d 3d 3d 0d 3e | 20 34 2e 20 4e 65 77 57 |======.>| 4. NewW|
|000039a0| 69 6e 64 6f 77 52 65 66 | 65 72 65 6e 63 65 20 63 |indowRef|erence c|
|000039b0| 75 72 72 65 6e 74 6c 79 | 20 69 6e 67 6f 72 65 73 |urrently| ingores|
|000039c0| 20 74 68 65 20 72 65 66 | 43 6f 6e 20 74 68 61 74 | the ref|Con that|
|000039d0| 20 69 73 20 70 61 73 73 | 65 64 20 74 6f 0d 3e 20 | is pass|ed to.> |
|000039e0| 69 74 20 61 73 20 61 6e | 20 61 72 67 75 6d 65 6e |it as an| argumen|
|000039f0| 74 2e 20 20 54 68 69 73 | 20 63 61 75 73 65 73 20 |t. This| causes |
|00003a00| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |our appl|ication |
|00003a10| 74 6f 20 63 72 61 73 68 | 2c 20 73 69 6e 63 65 20 |to crash|, since |
|00003a20| 6f 75 72 0d 3e 20 61 63 | 74 69 76 61 74 65 20 72 |our.> ac|tivate r|
|00003a30| 6f 75 74 69 6e 65 2c 20 | 28 77 68 69 63 68 20 69 |outine, |(which i|
|00003a40| 73 20 63 61 6c 6c 65 64 | 20 69 6d 6d 65 64 69 61 |s called| immedia|
|00003a50| 74 65 6c 79 20 62 79 20 | 4e 65 77 57 69 6e 64 6f |tely by |NewWindo|
|00003a60| 77 52 65 66 65 72 65 6e | 63 65 29 0d 3e 20 6e 65 |wReferen|ce).> ne|
|00003a70| 65 64 73 20 74 68 65 20 | 72 65 66 43 6f 6e 2e 20 |eds the |refCon. |
|00003a80| 20 4f 75 72 20 61 63 74 | 69 76 61 74 65 20 72 6f | Our act|ivate ro|
|00003a90| 75 74 69 6e 65 20 63 61 | 6c 6c 73 20 47 65 74 45 |utine ca|lls GetE|
|00003aa0| 78 74 57 52 65 66 43 6f | 6e 2c 20 77 68 69 63 68 |xtWRefCo|n, which|
|00003ab0| 0d 3e 20 72 65 74 75 72 | 6e 73 20 61 20 72 61 6e |.> retur|ns a ran|
|00003ac0| 64 6f 6d 20 72 65 73 75 | 6c 74 20 73 69 6e 63 65 |dom resu|lt since|
|00003ad0| 20 74 68 65 20 75 73 65 | 72 52 65 66 43 6f 6e 20 | the use|rRefCon |
|00003ae0| 66 69 65 6c 64 20 69 73 | 20 6e 65 76 65 72 0d 3e |field is| never.>|
|00003af0| 20 69 6e 69 74 69 61 6c | 69 7a 65 64 2e 0d 0d 57 | initial|ized...W|
|00003b00| 68 6f 6f 70 73 2c 20 73 | 6f 72 72 79 2e 20 46 69 |hoops, s|orry. Fi|
|00003b10| 78 65 64 2e 20 41 6c 73 | 6f 2c 20 47 65 74 4e 65 |xed. Als|o, GetNe|
|00003b20| 77 57 69 6e 64 6f 77 52 | 65 66 65 72 65 6e 63 65 |wWindowR|eference|
|00003b30| 20 70 72 65 73 65 72 76 | 65 73 20 77 68 61 74 65 | preserv|es whate|
|00003b40| 76 65 72 0d 72 65 66 63 | 6f 6e 20 77 61 73 20 73 |ver.refc|on was s|
|00003b50| 70 65 63 69 66 69 65 64 | 20 69 6e 20 74 68 65 20 |pecified| in the |
|00003b60| 57 49 4e 44 20 72 65 73 | 6f 75 72 63 65 2e 0d 0d |WIND res|ource...|
|00003b70| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003b80| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003b90| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003ba0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003bb0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 0d 3e 20 74 77 |========|===.> tw|
|00003bc0| 6f 20 6d 6f 72 65 20 73 | 75 67 67 65 73 74 69 6f |o more s|uggestio|
|00003bd0| 6e 73 20 6f 6e 20 79 6f | 75 72 20 6e 65 77 20 66 |ns on yo|ur new f|
|00003be0| 6c 6f 61 74 69 6e 67 20 | 77 69 6e 64 6f 77 73 20 |loating |windows |
|00003bf0| 6c 69 62 72 61 72 79 2e | 0d 3e 20 0d 3e 20 31 2e |library.|.> .> 1.|
|00003c00| 20 47 65 74 57 69 6e 64 | 6f 77 50 6f 72 74 52 65 | GetWind|owPortRe|
|00003c10| 63 74 28 29 20 69 73 6e | 27 74 20 75 73 65 64 20 |ct() isn|'t used |
|00003c20| 69 6e 20 79 6f 75 72 20 | 6c 69 62 72 61 72 79 2e |in your |library.|
|00003c30| 20 41 6c 73 6f 2c 20 69 | 74 20 63 6c 61 73 68 65 | Also, i|t clashe|
|00003c40| 73 0d 3e 20 77 69 74 68 | 20 5a 6f 6f 6d 43 6f 64 |s.> with| ZoomCod|
|00003c50| 65 2e 63 0d 3e 20 0d 3e | 20 32 2e 20 57 68 79 20 |e.c.> .>| 2. Why |
|00003c60| 61 72 65 20 47 65 74 57 | 61 73 56 69 73 69 62 6c |are GetW|asVisibl|
|00003c70| 65 28 29 2f 53 65 74 57 | 61 73 56 69 73 69 62 6c |e()/SetW|asVisibl|
|00003c80| 65 28 29 20 70 75 62 6c | 69 63 3f 0d 3e 20 43 61 |e() publ|ic?.> Ca|
|00003c90| 6e 20 61 6e 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |n an app|lication|
|00003ca0| 20 72 65 73 70 6f 6e 73 | 69 62 6c 79 20 75 73 65 | respons|ibly use|
|00003cb0| 20 74 68 69 73 3f 0d 0d | 46 69 78 65 64 3a 20 52 | this?..|Fixed: R|
|00003cc0| 65 6d 6f 76 65 64 20 47 | 65 74 57 69 6e 64 6f 77 |emoved G|etWindow|
|00003cd0| 50 6f 72 74 52 65 63 74 | 2e 20 22 50 72 69 76 61 |PortRect|. "Priva|
|00003ce0| 74 69 7a 65 64 22 20 47 | 65 74 2f 53 65 74 57 61 |tized" G|et/SetWa|
|00003cf0| 73 56 69 73 69 62 6c 65 | 2e 0d 0d 3d 3d 3d 3d 3d |sVisible|...=====|
|00003d00| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003d10| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003d20| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003d30| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003d40| 3d 3d 3d 3d 3d 3d 0d 3e | 20 49 20 68 61 64 20 74 |======.>| I had t|
|00003d50| 68 72 65 65 20 70 72 6f | 62 6c 65 6d 73 3a 0d 3e |hree pro|blems:.>|
|00003d60| 20 0d 3e 20 31 2e 20 4e | 65 77 57 69 6e 64 6f 77 | .> 1. N|ewWindow|
|00003d70| 52 65 66 65 72 65 6e 63 | 65 20 69 67 6e 6f 72 65 |Referenc|e ignore|
|00003d80| 73 20 74 68 65 20 72 65 | 66 43 6f 6e 20 70 61 73 |s the re|fCon pas|
|00003d90| 73 65 64 20 74 6f 20 69 | 74 2e 0d 3e 20 0d 3e 20 |sed to i|t..> .> |
|00003da0| 32 2e 20 53 65 74 57 52 | 65 66 43 6f 6e 20 69 73 |2. SetWR|efCon is|
|00003db0| 20 75 73 65 64 20 69 6e | 20 55 74 69 6c 69 74 69 | used in| Utiliti|
|00003dc0| 65 73 2e 63 20 20 54 68 | 69 73 20 77 61 73 20 61 |es.c Th|is was a|
|00003dd0| 20 6d 61 6c 6c 20 63 68 | 61 6e 67 65 20 62 75 74 | mall ch|ange but|
|00003de0| 20 74 68 69 73 0d 3e 20 | 69 73 20 67 6f 69 6e 67 | this.> |is going|
|00003df0| 20 74 6f 20 68 61 70 70 | 65 6e 3a 20 6c 65 67 61 | to happ|en: lega|
|00003e00| 63 79 20 6f 72 20 73 6e | 61 72 66 65 64 20 63 6f |cy or sn|arfed co|
|00003e10| 64 65 20 77 69 6c 6c 20 | 6e 65 65 64 20 74 6f 20 |de will |need to |
|00003e20| 62 65 20 63 68 61 6e 67 | 65 64 2e 0d 3e 20 0d 3e |be chang|ed..> .>|
|00003e30| 20 33 2e 20 49 20 64 6f | 6e 27 74 20 6b 6e 6f 77 | 3. I do|n't know|
|00003e40| 20 69 66 20 74 68 69 73 | 20 69 73 20 6d 79 20 66 | if this| is my f|
|00003e50| 61 75 6c 74 2c 20 62 75 | 74 20 79 6f 75 20 75 73 |ault, bu|t you us|
|00003e60| 65 20 47 65 74 31 52 65 | 73 6f 75 72 63 65 20 74 |e Get1Re|source t|
|00003e70| 6f 20 67 65 74 0d 3e 20 | 74 68 65 20 61 70 70 72 |o get.> |the appr|
|00003e80| 6f 70 72 69 61 74 65 20 | 57 49 4e 44 20 72 65 73 |opriate |WIND res|
|00003e90| 6f 75 72 63 65 2e 20 20 | 49 20 63 68 61 6e 67 65 |ource. |I change|
|00003ea0| 64 20 74 68 69 73 20 74 | 6f 20 47 65 74 52 65 73 |d this t|o GetRes|
|00003eb0| 6f 75 72 63 65 2e 20 49 | 0d 3e 20 63 61 6e 27 74 |ource. I|.> can't|
|00003ec0| 20 75 6e 64 65 72 73 74 | 61 6e 64 20 77 68 79 20 | underst|and why |
|00003ed0| 69 74 20 73 68 6f 75 6c | 64 6e 27 74 20 62 65 20 |it shoul|dn't be |
|00003ee0| 47 65 74 52 65 73 6f 75 | 72 63 65 2e 0d 3e 20 0d |GetResou|rce..> .|
|00003ef0| 3e 20 49 20 64 69 64 20 | 61 20 6c 69 74 74 6c 65 |> I did |a little|
|00003f00| 20 6d 6f 72 65 20 63 68 | 65 63 6b 69 6e 67 20 77 | more ch|ecking w|
|00003f10| 69 74 68 20 6d 79 20 61 | 70 70 6c 69 63 61 74 69 |ith my a|pplicati|
|00003f20| 6f 6e 2e 20 0d 3e 20 47 | 65 74 31 52 65 73 6f 75 |on. .> G|et1Resou|
|00003f30| 72 63 65 28 27 57 49 4e | 44 27 2c 20 2e 2e 29 20 |rce('WIN|D', ..) |
|00003f40| 77 61 73 20 66 61 69 6c | 69 6e 67 2e 20 20 54 68 |was fail|ing. Th|
|00003f50| 65 72 65 20 61 72 65 20 | 74 77 6f 20 72 65 73 6f |ere are |two reso|
|00003f60| 75 72 63 65 20 66 69 6c | 65 73 2c 0d 3e 20 74 68 |urce fil|es,.> th|
|00003f70| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 72 65 |e applic|ation re|
|00003f80| 73 6f 75 72 63 65 20 66 | 6f 72 6b 20 61 6e 64 20 |source f|ork and |
|00003f90| 74 68 65 20 70 72 65 66 | 65 72 65 6e 63 65 73 20 |the pref|erences |
|00003fa0| 66 69 6c 65 2e 20 20 49 | 20 75 73 65 0d 3e 20 53 |file. I| use.> S|
|00003fb0| 74 64 50 72 65 66 73 4c | 69 62 2e 63 20 74 6f 20 |tdPrefsL|ib.c to |
|00003fc0| 6d 61 6e 61 67 65 20 74 | 68 65 20 70 72 65 66 65 |manage t|he prefe|
|00003fd0| 72 65 6e 63 65 73 20 66 | 69 6c 65 2e 0d 0d 31 2e |rences f|ile...1.|
|00003fe0| 20 46 69 78 65 64 2e 0d | 0d 32 2e 20 59 65 70 2c | Fixed..|.2. Yep,|
|00003ff0| 20 69 74 27 73 20 62 6f | 75 6e 64 20 74 6f 20 68 | it's bo|und to h|
|00004000| 61 70 70 65 6e 2c 20 75 | 6e 66 6f 72 74 75 6e 61 |appen, u|nfortuna|
|00004010| 74 65 6c 79 2e 20 41 6e | 79 6f 6e 65 20 75 73 69 |tely. An|yone usi|
|00004020| 6e 67 20 74 68 69 73 20 | 63 6f 64 65 0d 73 68 6f |ng this |code.sho|
|00004030| 75 6c 64 20 64 6f 20 61 | 20 76 65 72 79 20 63 6f |uld do a| very co|
|00004040| 6d 70 6c 65 74 65 20 73 | 65 61 72 63 68 20 66 6f |mplete s|earch fo|
|00004050| 72 20 47 65 74 2f 53 65 | 74 57 52 65 66 43 6f 6e |r Get/Se|tWRefCon|
|00004060| 20 61 6e 64 20 63 68 61 | 6e 67 65 20 41 4c 4c 0d | and cha|nge ALL.|
|00004070| 6f 63 63 75 72 72 65 6e | 63 65 73 2e 0d 0d 33 2e |occurren|ces...3.|
|00004080| 20 49 27 6d 20 67 6f 69 | 6e 67 20 74 6f 20 6c 65 | I'm goi|ng to le|
|00004090| 61 76 65 20 69 74 20 47 | 65 74 31 52 65 73 6f 75 |ave it G|et1Resou|
|000040a0| 72 63 65 2c 20 73 69 6e | 63 65 20 74 68 65 20 61 |rce, sin|ce the a|
|000040b0| 70 70 27 73 20 72 65 73 | 6f 75 72 63 65 20 66 69 |pp's res|ource fi|
|000040c0| 6c 65 0d 73 68 6f 75 6c | 64 20 62 65 20 74 6f 70 |le.shoul|d be top|
|000040d0| 6d 6f 73 74 20 69 6e 20 | 74 68 65 20 72 65 73 6f |most in |the reso|
|000040e0| 75 72 63 65 20 63 68 61 | 69 6e 20 77 68 65 6e 20 |urce cha|in when |
|000040f0| 47 65 74 4e 65 77 57 69 | 6e 64 6f 77 52 65 66 65 |GetNewWi|ndowRefe|
|00004100| 72 65 6e 63 65 20 69 73 | 0d 63 61 6c 6c 65 64 2e |rence is|.called.|
|00004110| 20 28 54 68 61 74 20 69 | 73 2c 20 75 6e 6c 65 73 | (That i|s, unles|
|00004120| 73 20 49 20 68 65 61 72 | 20 66 72 6f 6d 20 6f 74 |s I hear| from ot|
|00004130| 68 65 72 20 66 6f 6c 6b | 73 20 61 62 6f 75 74 20 |her folk|s about |
|00004140| 74 68 69 73 20 74 6f 6f | 2e 29 0d 53 74 64 50 72 |this too|.).StdPr|
|00004150| 65 66 73 4c 69 62 2e 63 | 20 69 73 20 70 72 6f 62 |efsLib.c| is prob|
|00004160| 61 62 6c 79 20 61 74 20 | 66 61 75 6c 74 2c 20 6e |ably at |fault, n|
|00004170| 6f 74 20 72 65 73 74 6f | 72 69 6e 67 20 74 68 65 |ot resto|ring the|
|00004180| 20 72 65 73 6f 75 72 63 | 65 20 63 68 61 69 6e 0d | resourc|e chain.|
|00004190| 61 66 74 65 72 20 69 74 | 73 20 6f 70 65 72 61 74 |after it|s operat|
|000041a0| 69 6f 6e 73 2e 0d 0d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |ions...=|========|
|000041b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000041c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000041d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000041e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000041f0| 0d 3e 20 41 20 70 72 6f | 62 6c 65 6d 20 6f 63 63 |.> A pro|blem occ|
|00004200| 75 72 73 20 77 68 65 6e | 65 76 65 72 20 77 65 20 |urs when|ever we |
|00004210| 63 72 65 61 74 65 20 61 | 20 6d 6f 64 61 6c 20 77 |create a| modal w|
|00004220| 69 6e 64 6f 77 2e 20 20 | 4f 75 72 20 73 74 61 6e |indow. |Our stan|
|00004230| 64 61 72 64 0d 3e 20 6d | 65 74 68 6f 64 20 69 73 |dard.> m|ethod is|
|00004240| 20 74 6f 20 63 72 65 61 | 74 65 20 61 20 77 69 6e | to crea|te a win|
|00004250| 64 6f 77 20 61 73 20 69 | 6e 76 69 73 69 62 6c 65 |dow as i|nvisible|
|00004260| 2c 20 63 61 6c 6c 20 4e | 65 77 43 6f 6e 74 72 6f |, call N|ewContro|
|00004270| 6c 2c 20 4c 4e 65 77 2c | 0d 3e 20 65 74 63 2e 2c |l, LNew,|.> etc.,|
|00004280| 20 61 6e 64 20 74 68 65 | 6e 20 63 61 6c 6c 20 53 | and the|n call S|
|00004290| 68 6f 77 52 65 66 65 72 | 65 6e 63 65 64 57 69 6e |howRefer|encedWin|
|000042a0| 64 6f 77 2e 20 20 54 68 | 65 20 70 72 6f 62 6c 65 |dow. Th|e proble|
|000042b0| 6d 20 69 73 20 74 68 61 | 74 0d 3e 20 53 68 6f 77 |m is tha|t.> Show|
|000042c0| 52 65 66 65 72 65 6e 63 | 65 64 57 69 6e 64 6f 77 |Referenc|edWindow|
|000042d0| 20 64 6f 65 73 6e 27 74 | 20 6d 61 6b 65 20 74 68 | doesn't| make th|
|000042e0| 65 20 77 69 6e 64 6f 77 | 20 74 68 65 20 46 72 6f |e window| the Fro|
|000042f0| 6e 74 57 69 6e 64 6f 77 | 20 69 66 20 74 68 65 72 |ntWindow| if ther|
|00004300| 65 0d 3e 20 61 72 65 20 | 66 6c 6f 61 74 69 6e 67 |e.> are |floating|
|00004310| 20 77 69 6e 64 6f 77 73 | 20 6f 70 65 6e 2e 20 20 | windows| open. |
|00004320| 54 68 75 73 2c 20 6e 6f | 20 6d 61 74 74 65 72 20 |Thus, no| matter |
|00004330| 77 68 61 74 20 6b 69 6e | 64 20 6f 66 20 66 69 6c |what kin|d of fil|
|00004340| 74 65 72 69 6e 67 20 77 | 65 0d 3e 20 64 6f 20 69 |tering w|e.> do i|
|00004350| 6e 20 74 68 65 20 65 76 | 65 6e 74 20 6c 6f 6f 70 |n the ev|ent loop|
|00004360| 2c 20 74 68 65 20 75 73 | 65 72 20 63 61 6e 20 61 |, the us|er can a|
|00004370| 6c 77 61 79 73 20 63 6c | 69 63 6b 20 6f 6e 20 74 |lways cl|ick on t|
|00004380| 68 65 20 64 65 73 6b 74 | 6f 70 20 74 6f 0d 3e 20 |he deskt|op to.> |
|00004390| 73 77 69 74 63 68 20 6f | 75 74 20 6f 66 20 74 68 |switch o|ut of th|
|000043a0| 65 20 61 70 70 2c 20 62 | 65 63 61 75 73 65 20 74 |e app, b|ecause t|
|000043b0| 68 65 20 73 79 73 74 65 | 6d 20 64 6f 65 73 20 6e |he syste|m does n|
|000043c0| 6f 74 20 73 65 65 20 74 | 68 65 20 46 72 6f 6e 74 |ot see t|he Front|
|000043d0| 57 69 6e 64 6f 77 0d 3e | 20 61 73 20 6d 6f 64 61 |Window.>| as moda|
|000043e0| 6c 2e 0d 3e 20 0d 3e 20 | 41 20 63 61 6c 6c 20 74 |l..> .> |A call t|
|000043f0| 6f 20 42 72 69 6e 67 54 | 6f 46 72 6f 6e 74 20 69 |o BringT|oFront i|
|00004400| 66 20 74 68 65 20 77 69 | 6e 64 6f 77 20 69 73 20 |f the wi|ndow is |
|00004410| 6d 6f 64 61 6c 20 28 65 | 69 74 68 65 72 20 69 6e |modal (e|ither in|
|00004420| 0d 3e 20 53 68 6f 77 52 | 65 66 65 72 65 6e 63 65 |.> ShowR|eference|
|00004430| 64 57 69 6e 64 6f 77 20 | 6f 72 20 69 6e 20 6f 75 |dWindow |or in ou|
|00004440| 72 20 63 61 6c 6c 69 6e | 67 20 63 6f 64 65 29 20 |r callin|g code) |
|00004450| 73 68 6f 75 6c 64 20 64 | 6f 20 74 68 65 20 74 72 |should d|o the tr|
|00004460| 69 63 6b 2e 0d 0d 46 69 | 78 65 64 2e 20 54 68 69 |ick...Fi|xed. Thi|
|00004470| 73 20 6e 65 63 65 73 73 | 69 74 61 74 65 64 20 61 |s necess|itated a|
|00004480| 6e 6f 74 68 65 72 20 63 | 68 61 6e 67 65 2c 20 74 |nother c|hange, t|
|00004490| 6f 6f 3a 20 57 69 6e 64 | 6f 77 49 73 4d 6f 64 61 |oo: Wind|owIsModa|
|000044a0| 6c 20 75 73 65 64 20 74 | 6f 0d 72 65 74 75 72 6e |l used t|o.return|
|000044b0| 20 74 72 75 65 20 6f 6e | 6c 79 20 69 66 20 74 68 | true on|ly if th|
|000044c0| 65 20 77 69 6e 64 6f 77 | 27 73 20 6b 69 6e 64 20 |e window|'s kind |
|000044d0| 77 61 73 20 64 69 61 6c | 6f 67 4b 69 6e 64 2c 20 |was dial|ogKind, |
|000044e0| 62 75 74 20 74 68 65 73 | 65 0d 6d 61 6e 75 61 6c |but thes|e.manual|
|000044f0| 6c 79 20 63 72 65 61 74 | 65 64 20 6d 6f 64 61 6c |ly creat|ed modal|
|00004500| 20 77 69 6e 64 6f 77 73 | 20 64 6f 6e 27 74 20 71 | windows| don't q|
|00004510| 75 61 6c 69 66 79 2e 20 | 49 20 74 72 69 65 64 20 |ualify. |I tried |
|00004520| 6a 75 73 74 20 73 65 74 | 74 69 6e 67 0d 74 68 65 |just set|ting.the|
|00004530| 20 77 69 6e 64 6f 77 27 | 73 20 6b 69 6e 64 20 74 | window'|s kind t|
|00004540| 6f 20 64 69 61 6c 6f 67 | 4b 69 6e 64 20 6d 79 73 |o dialog|Kind mys|
|00004550| 65 6c 66 2c 20 62 75 74 | 20 74 68 61 74 27 73 20 |elf, but| that's |
|00004560| 64 69 73 61 73 74 72 6f | 75 73 20 28 74 68 65 0d |disastro|us (the.|
|00004570| 73 79 73 74 65 6d 20 6d | 61 6b 65 73 20 61 73 73 |system m|akes ass|
|00004580| 75 6d 70 74 69 6f 6e 73 | 20 61 62 6f 75 74 20 73 |umptions| about s|
|00004590| 75 63 68 20 77 69 6e 64 | 6f 77 73 2c 20 61 6e 64 |uch wind|ows, and|
|000045a0| 20 63 61 6c 6c 73 20 61 | 6c 6c 20 6b 69 6e 64 73 | calls a|ll kinds|
|000045b0| 20 6f 66 0d 64 69 61 6c | 6f 67 20 72 6f 75 74 69 | of.dial|og routi|
|000045c0| 6e 65 73 20 62 65 68 69 | 6e 64 20 79 6f 75 72 20 |nes behi|nd your |
|000045d0| 62 61 63 6b 2c 20 72 65 | 73 75 6c 74 69 6e 67 20 |back, re|sulting |
|000045e0| 69 6e 20 6e 61 73 74 79 | 20 63 72 61 73 68 65 73 |in nasty| crashes|
|000045f0| 29 2e 20 49 0d 74 72 69 | 65 64 20 63 68 61 6e 67 |). I.tri|ed chang|
|00004600| 69 6e 67 20 57 69 6e 64 | 6f 77 49 73 4d 6f 64 61 |ing Wind|owIsModa|
|00004610| 6c 20 74 6f 20 72 65 74 | 75 72 6e 20 74 72 75 65 |l to ret|urn true|
|00004620| 20 69 66 20 74 68 65 20 | 77 69 6e 64 6f 77 20 77 | if the |window w|
|00004630| 61 73 0d 64 69 61 6c 6f | 67 4b 69 6e 64 20 4f 52 |as.dialo|gKind OR|
|00004640| 20 69 66 20 69 74 73 20 | 76 61 72 69 61 6e 74 20 | if its |variant |
|00004650| 77 61 73 20 61 20 6d 6f | 64 61 6c 20 74 79 70 65 |was a mo|dal type|
|00004660| 20 28 69 74 20 75 73 65 | 64 20 74 6f 20 62 65 20 | (it use|d to be |
|00004670| 41 4e 44 29 20 62 75 74 | 0d 69 74 20 74 75 72 6e |AND) but|.it turn|
|00004680| 73 20 6f 75 74 20 74 68 | 61 74 20 73 6f 6d 65 20 |s out th|at some |
|00004690| 66 6c 6f 61 74 65 72 20 | 76 61 72 69 61 6e 74 73 |floater |variants|
|000046a0| 20 6f 76 65 72 6c 61 70 | 20 77 69 74 68 20 72 65 | overlap| with re|
|000046b0| 67 75 6c 61 72 20 76 61 | 72 69 61 6e 74 73 0d 28 |gular va|riants.(|
|000046c0| 66 6f 72 20 69 6e 73 74 | 61 6e 63 65 2c 20 61 20 |for inst|ance, a |
|000046d0| 66 6c 6f 61 74 65 72 20 | 77 69 74 68 20 61 20 7a |floater |with a z|
|000046e0| 6f 6f 6d 20 62 6f 78 20 | 72 65 74 75 72 6e 73 20 |oom box |returns |
|000046f0| 76 61 72 69 61 6e 74 20 | 35 2c 20 74 68 65 20 73 |variant |5, the s|
|00004700| 61 6d 65 0d 61 73 20 61 | 20 6d 6f 76 61 62 6c 65 |ame.as a| movable|
|00004710| 20 6d 6f 64 61 6c 29 2e | 20 4e 6f 77 2c 20 57 69 | modal).| Now, Wi|
|00004720| 6e 64 6f 77 49 73 4d 6f | 64 61 6c 20 72 65 74 75 |ndowIsMo|dal retu|
|00004730| 72 6e 73 20 74 72 75 65 | 20 69 66 20 74 68 65 20 |rns true| if the |
|00004740| 77 69 6e 64 6f 77 20 69 | 73 0d 4e 4f 54 20 61 20 |window i|s.NOT a |
|00004750| 66 6c 6f 61 74 65 72 2c | 20 41 4e 44 20 69 74 20 |floater,| AND it |
|00004760| 69 73 20 65 69 74 68 65 | 72 20 64 69 61 6c 6f 67 |is eithe|r dialog|
|00004770| 4b 69 6e 64 20 6f 72 20 | 61 20 6d 6f 64 61 6c 20 |Kind or |a modal |
|00004780| 76 61 72 69 61 6e 74 2e | 20 57 68 65 77 21 0d 00 |variant.| Whew!..|
|00004790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004800| 00 00 01 00 00 00 02 74 | 00 00 01 74 00 00 00 46 |.......t|...t...F|
|00004810| ab b9 85 79 11 4d 57 20 | 50 61 73 63 61 6c 20 50 |...y.MW |Pascal P|
|00004820| 50 43 20 31 2e 30 00 00 | 00 00 00 00 00 00 00 00 |PC 1.0..|........|
|00004830| 14 46 69 78 65 64 20 42 | 75 67 20 4c 69 73 74 2f |.Fixed B|ug List/|
|00004840| 4e 6f 74 65 73 42 02 00 | 00 00 54 45 58 54 52 2a |NotesB..|..TEXTR*|
|00004850| 00 00 54 45 58 54 52 2a | 63 68 01 00 00 64 01 20 |..TEXTR*|ch...d. |
|00004860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004870| 00 00 ac 19 87 6b 00 00 | 47 0f 00 00 02 ba 00 00 |.....k..|G.......|
|00004880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 03 |........|........|
|00004890| 00 00 39 c3 ab b9 c4 f7 | 09 49 6e 73 74 61 6c 6c |..9.....|.Install|
|000048a0| 65 72 31 20 49 6e 73 74 | 61 6c 6c 65 72 20 28 41 |er1 Inst|aller (A|
|000048b0| 6d 65 72 69 63 61 73 29 | 00 00 00 01 00 00 29 63 |mericas)|......)c|
|000048c0| ab fc 71 b0 0b 43 6f 6d | 70 61 63 74 20 50 72 6f |..q..Com|pact Pro|
|000048d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048e0| 00 00 00 00 00 00 00 01 | 00 00 00 16 ab 87 7b d2 |........|......{.|
|000048f0| 0e 4d 69 63 72 6f 50 68 | 6f 6e 65 aa 20 49 49 00 |.MicroPh|one. II.|
|00004900| 00 00 00 04 00 01 00 01 | 00 00 01 68 52 2a 63 68 |........|...hR*ch|
|00004910| 02 50 00 2e 00 0e 02 3c | 01 a7 00 18 00 00 40 ca |.P.....<|......@.|
|00004920| 00 00 40 ca 00 00 01 47 | 00 04 00 09 00 00 06 4d |..@....G|.......M|
|00004930| 6f 6e 61 63 6f 00 00 00 | 00 00 00 00 00 00 00 00 |onaco...|........|
|00004940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 03 00 |........|........|
|00004970| 00 04 00 00 00 48 00 48 | 00 00 00 00 02 da 02 28 |.....H.H|.......(|
|00004980| ff e1 ff e2 02 f9 02 46 | 03 47 05 28 03 fc 00 02 |.......F|.G.(....|
|00004990| 00 00 00 48 00 48 00 00 | 00 00 02 da 02 28 00 01 |...H.H..|.....(..|
|000049a0| 00 00 00 64 00 00 00 01 | 00 01 00 01 00 00 00 01 |...d....|........|
|000049b0| 27 0f 00 01 01 01 00 00 | 00 00 00 00 00 00 00 00 |'.......|........|
|000049c0| 00 00 00 02 00 19 01 90 | 00 00 00 00 00 c0 00 00 |........|........|
|000049d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049e0| 00 00 00 00 00 00 00 00 | 00 04 00 09 00 00 06 4d |........|.......M|
|000049f0| 6f 6e 61 63 6f 08 00 00 | 00 00 00 00 00 00 00 00 |onaco...|........|
|00004a00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 04 |........|........|
|00004a30| 01 00 00 01 00 00 00 00 | 00 01 00 00 00 00 00 00 |........|........|
|00004a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a60| 00 00 00 00 01 01 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a70| 00 00 00 00 00 00 01 00 | 00 00 02 74 00 00 01 74 |........|...t...t|
|00004a80| 00 00 00 46 01 60 a2 8c | 28 08 00 00 00 1c 00 46 |...F.`..|(......F|
|00004a90| 00 01 4d 57 42 42 00 00 | 00 12 42 42 53 52 00 00 |..MWBB..|..BBSR..|
|00004aa0| 00 1e 03 f0 ff ff 00 00 | 00 00 00 00 00 00 02 50 |........|.......P|
|00004ab0| ff ff 00 00 00 08 01 60 | a1 44 00 00 00 00 00 00 |.......`|.D......|
|00004ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+